equal
deleted
inserted
replaced
272 iVisible); |
272 iVisible); |
273 |
273 |
274 iWindow->SetVisible(aContainer->MdcContainerVisibility() && |
274 iWindow->SetVisible(aContainer->MdcContainerVisibility() && |
275 iVisible); |
275 iVisible); |
276 } |
276 } |
|
277 |
|
278 if(iFixUIOrientation) |
|
279 { |
|
280 iContainer->MdcFixUIOrientation(ETrue); |
|
281 iFixUIOrientation = EFalse; |
|
282 } |
277 } |
283 } |
278 |
284 |
279 // interface MMMADirectContent |
285 // interface MMMADirectContent |
280 CFbsBitmap* CMMADCDisplay::MdcFrameBuffer() const |
286 CFbsBitmap* CMMADCDisplay::MdcFrameBuffer() const |
281 { |
287 { |
310 { |
316 { |
311 iContainer->MdcGetUICallback(aConsumer, aCallbackId); |
317 iContainer->MdcGetUICallback(aConsumer, aCallbackId); |
312 } |
318 } |
313 } |
319 } |
314 |
320 |
|
321 void CMMADCDisplay::FixUIOrientation(TBool aFix) |
|
322 { |
|
323 if (iContainer) |
|
324 { |
|
325 iContainer->MdcFixUIOrientation(aFix); |
|
326 } |
|
327 else |
|
328 { |
|
329 // fix orientation when container becomes available |
|
330 iFixUIOrientation = aFix; |
|
331 } |
|
332 } |
|
333 |
315 TInt CMMADCDisplay::InitBitmapMode() |
334 TInt CMMADCDisplay::InitBitmapMode() |
316 { |
335 { |
317 TInt errCode = KErrNone; |
336 TInt errCode = KErrNone; |
318 // If there is no bitmap, create one and set it to window |
337 // If there is no bitmap, create one and set it to window |
319 if (!iBitmap && iWindow) |
338 if (!iBitmap && iWindow) |
347 } |
366 } |
348 } |
367 } |
349 |
368 |
350 CMMADCDisplay::CMMADCDisplay(MMMAGuiPlayer* aPlayer, |
369 CMMADCDisplay::CMMADCDisplay(MMMAGuiPlayer* aPlayer, |
351 CMMAEventSource* aEventSource, |
370 CMMAEventSource* aEventSource, |
352 jobject aGUIObject) |
371 jobject aGUIObject): |
|
372 iFixUIOrientation(EFalse) |
353 { |
373 { |
354 iPlayer = aPlayer; |
374 iPlayer = aPlayer; |
355 iEventSource = aEventSource; |
375 iEventSource = aEventSource; |
356 iGUIObject = aGUIObject; |
376 iGUIObject = aGUIObject; |
357 // GUI_PRIMITIVE is visible by default. |
377 // GUI_PRIMITIVE is visible by default. |