equal
deleted
inserted
replaced
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include <coedef.h> |
25 #include <coedef.h> |
26 #include <w32std.h> |
26 #include <w32std.h> |
27 #include <AknWsEventObserver.h> |
27 #include "WebSprite.h" |
|
28 #include "WebCannedImages.h" |
|
29 |
28 // MACROS |
30 // MACROS |
29 |
31 |
30 // FORWARD DECLARATIONS |
32 // FORWARD DECLARATIONS |
31 class WebView; |
33 class WebView; |
32 class WebFrame; |
34 class WebFrame; |
33 |
35 |
34 // CLASS DECLARATION |
36 // CLASS DECLARATION |
35 class WebPageFullScreenHandler: public CBase, public MAknWsEventObserver { |
37 class WebPageFullScreenHandler: public CWebSprite |
|
38 { |
36 public: // Constructor and destructor |
39 public: // Constructor and destructor |
37 |
40 |
38 /** |
41 /** |
39 * Two-phased constructor. |
42 * Two-phased constructor. |
40 **/ |
43 **/ |
53 WebPageFullScreenHandler(WebView& webView); |
56 WebPageFullScreenHandler(WebView& webView); |
54 |
57 |
55 /** |
58 /** |
56 * By default Symbian 2nd phase constructor is private. |
59 * By default Symbian 2nd phase constructor is private. |
57 **/ |
60 **/ |
58 void constructL(); |
61 void ConstructL(); |
59 |
62 |
60 TBool HitRegionContains(const TPoint& aPoint); |
63 TPoint CalculatePosition(); |
61 void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination); |
64 |
62 void AddWsObserverToControl(); |
|
63 void constructSprite(); |
|
64 void destructSprite(); |
|
65 |
|
66 public: // New functions |
65 public: // New functions |
67 |
66 |
68 |
67 |
69 /** |
68 /** |
70 * @since 5.0 |
69 * @since 5.0 |
92 * @param |
91 * @param |
93 * @return |
92 * @return |
94 **/ |
93 **/ |
95 void SizeChanged(void); |
94 void SizeChanged(void); |
96 |
95 |
97 |
96 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
98 private: |
97 private: |
99 |
98 |
100 // Pointer to owning view |
99 // Pointer to owning view |
101 |
100 |
102 WebView* m_webView; // not owned |
101 WebView* m_webView; // not owned |
103 CAknWsEventMonitor* m_eventMonitor; // not owned |
102 TBool m_isTouchDown; |
104 RWsSprite m_sprite; |
103 TCannedImageData m_buttonIcon; |
105 TBool m_spriteVisible; |
|
106 TBool m_tappedOnSprite; |
|
107 TPoint m_pos; |
|
108 }; |
104 }; |
109 |
105 |
110 #endif //WEBPAGEFULLSCREENHANDLER_H |
106 #endif //WEBPAGEFULLSCREENHANDLER_H |
111 |
107 |
112 // End of File |
108 // End of File |