equal
deleted
inserted
replaced
48 |
48 |
49 protected: // Constructors and destructors |
49 protected: // Constructors and destructors |
50 // Default constructor, protected to allow derivation |
50 // Default constructor, protected to allow derivation |
51 CMMADisplay(); |
51 CMMADisplay(); |
52 |
52 |
53 void Construct(MMAFunctionServer* eventSource ,jobject javadisplayref); |
53 void Construct(MMAFunctionServer* eventSource ,JNIEnv* aJni, jobject javadisplayref); |
54 |
54 |
55 public: // Methods derived from MMMADisplay |
55 public: // Methods derived from MMMADisplay |
56 void DrawFrameL(const CFbsBitmap* aBitmap); |
56 void DrawFrameL(const CFbsBitmap* aBitmap); |
57 TSize DisplaySize(); |
57 TSize DisplaySize(); |
58 void SetDisplaySizeL(const TSize& aSize); |
58 void SetDisplaySizeL(const TSize& aSize); |
64 virtual void SetForeground(TBool aIsForeground, TBool aUseEventServer); |
64 virtual void SetForeground(TBool aIsForeground, TBool aUseEventServer); |
65 void SourceSizeChanged(const TSize& aSourceSize); |
65 void SourceSizeChanged(const TSize& aSourceSize); |
66 void SetUIPlayer(MMMAGuiPlayer* player); |
66 void SetUIPlayer(MMMAGuiPlayer* player); |
67 TSize SourceSize(); |
67 TSize SourceSize(); |
68 virtual void SourceSizeChanged(TInt aJavaControlWidth, TInt aJavaControlHeight,TInt x,TInt y, TRect aBoundsRect) = 0; |
68 virtual void SourceSizeChanged(TInt aJavaControlWidth, TInt aJavaControlHeight,TInt x,TInt y, TRect aBoundsRect) = 0; |
69 |
69 TBool iseSWT(); |
|
70 void SetFullscreenSize(TSize& aSize); |
70 /** |
71 /** |
71 * Gets notification that there is container to draw assigned |
72 * Gets notification that there is container to draw assigned |
72 * |
73 * |
73 * @return ETrue if container have been set |
74 * @return ETrue if container have been set |
74 * EFalse if container is not set |
75 * EFalse if container is not set |
265 TBool iResetDrawRect; |
266 TBool iResetDrawRect; |
266 // not owned |
267 // not owned |
267 MMAFunctionServer* iEventSource; |
268 MMAFunctionServer* iEventSource; |
268 JNIEnv* iJni; |
269 JNIEnv* iJni; |
269 jobject iJavaDisplayObject; |
270 jobject iJavaDisplayObject; |
270 jclass iJavaDisplayClass; |
271 jclass iJavaDisplayClass; |
271 TSize iFullScreenSize; |
272 TSize iFullScreenSize; |
272 MMMAGuiPlayer* iUiPlayer; |
273 MMMAGuiPlayer* iUiPlayer; |
|
274 TBool iIseSWT; |
|
275 jmethodID setRectID; |
|
276 jfieldID iRectDimensionField; |
|
277 jfieldID iDisplayboundarrField; |
|
278 jmethodID setContentBoundID; |
|
279 jmethodID removeContentBoundID; |
|
280 jmethodID redrawControlID; |
|
281 jmethodID getCallBackMethodID; |
|
282 jobject iJavadisplayref; |
|
283 jmethodID getBoundRectID; |
273 }; |
284 }; |
274 |
285 |
275 #endif // CMMADISPLAY_H |
286 #endif // CMMADISPLAY_H |