equal
deleted
inserted
replaced
150 case SwtWsEventAppFocusLost: |
150 case SwtWsEventAppFocusLost: |
151 { |
151 { |
152 TBool focused = aEvent == SwtWsEventAppFocusGained; |
152 TBool focused = aEvent == SwtWsEventAppFocusGained; |
153 |
153 |
154 // UiUtils intentionally handled separately although it is an app focus observer also. |
154 // UiUtils intentionally handled separately although it is an app focus observer also. |
155 iUiUtils->HandleAppFocusChangeL(focused); |
155 if (iUiUtils) |
|
156 { |
|
157 iUiUtils->HandleAppFocusChangeL(focused); |
|
158 } |
156 |
159 |
157 // Inform other observers. |
160 // Inform other observers. |
158 const TInt count = iAppFocusObservers.Count(); |
161 const TInt count = iAppFocusObservers.Count(); |
159 for (TInt i = 0; i < count; i++) |
162 for (TInt i = 0; i < count; i++) |
160 { |
163 { |
180 } |
183 } |
181 |
184 |
182 if (aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserFreeRam) |
185 if (aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserFreeRam) |
183 || aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserMemoryGood)) |
186 || aEvent == CSwtLafFacade::GetConstant(CSwtLafFacade::EBrowserMemoryGood)) |
184 { |
187 { |
185 iUiUtils->HandleFreeRamEventL(aEvent); |
188 if (iUiUtils) |
|
189 { |
|
190 iUiUtils->HandleFreeRamEventL(aEvent); |
|
191 } |
186 } |
192 } |
187 } |
193 } |
188 |
194 |
189 // Native Ui Thread |
195 // Native Ui Thread |
190 void CSwtDisplay::RemoveDialogBroker(CSwtDialogBroker* aBroker) |
196 void CSwtDisplay::RemoveDialogBroker(CSwtDialogBroker* aBroker) |