24 #include <e32std.h> |
24 #include <e32std.h> |
25 #include <Browser_Platform_Variant.hrh> |
25 #include <Browser_Platform_Variant.hrh> |
26 #include <brctldefs.h> |
26 #include <brctldefs.h> |
27 #include <brctlinterface.h> |
27 #include <brctlinterface.h> |
28 #include "WidgetEngineCallbacks.h" |
28 #include "WidgetEngineCallbacks.h" |
|
29 |
|
30 enum TNetworkState |
|
31 { |
|
32 ENetworkNotAllowed = 0, |
|
33 ENetworkAccessAllowed, |
|
34 ENetworkAccessible |
|
35 }; |
29 |
36 |
30 // FUNCTION PROTOTYPES |
37 // FUNCTION PROTOTYPES |
31 |
38 |
32 // FORWARD DECLARATION |
39 // FORWARD DECLARATION |
33 class WebView; |
40 class WebView; |
56 void DrawTransition(CWindowGc& gc, CFbsBitmap* fbsBm); |
63 void DrawTransition(CWindowGc& gc, CFbsBitmap* fbsBm); |
57 void SetParamL(TBrCtlDefs::TBrCtlWidgetParams aParam, const TDesC& aValue); |
64 void SetParamL(TBrCtlDefs::TBrCtlWidgetParams aParam, const TDesC& aValue); |
58 void SetParamL(TBrCtlDefs::TBrCtlWidgetParams aParam, TUint aValue); |
65 void SetParamL(TBrCtlDefs::TBrCtlWidgetParams aParam, TUint aValue); |
59 TBool HandleCommandL( TInt aCommandId ); |
66 TBool HandleCommandL( TInt aCommandId ); |
60 TInt GetWidgetId(){ return iWidgetId;} |
67 TInt GetWidgetId(){ return iWidgetId;} |
|
68 TInt widgetNetworkConstants( TInt aId ); |
|
69 TInt widgetNetworkState() { return (TInt)m_widgetNetState; } |
61 |
70 |
62 public: |
71 public: |
63 void drawWidgetTransition(); |
72 void drawWidgetTransition(); |
64 CFbsBitmap* offscreenBitmap(); |
73 CFbsBitmap* offscreenBitmap(); |
65 void setRightSoftKeyLabel(const TDesC& aText); |
74 void setRightSoftKeyLabel(const TDesC& aText); |
66 void setLeftSoftKeyLabel(const TDesC& aText); |
75 void setLeftSoftKeyLabel(const TDesC& aText); |
67 void setTabbednavigation(bool aOn); |
76 void setTabbednavigation(bool aOn); |
68 bool IsWidgetPublising(){ return m_isWidgetPublishing;} |
77 bool IsWidgetPublising(){ return m_isWidgetPublishing;} |
69 void setNavigationType(const TDesC& aType); |
78 void setNavigationType(const TDesC& aType); |
70 void windowObjectCleared(); |
79 void windowObjectCleared(); |
|
80 #if defined(BRDO_LIW_FF) |
|
81 void* getSecuritySession(){ return m_securitySession; } |
|
82 #endif |
|
83 |
71 |
84 |
72 private: |
85 private: |
73 void AddJSExtension(const TDesC& id, void* obj); |
86 void AddJSExtension(const TDesC& id, void* obj); |
74 CWidgetExtension(WebView& aWebKitView); |
87 CWidgetExtension(WebView& aWebKitView); |
75 void ConstructL(MWidgetCallback& aWidgetCallback); |
88 void ConstructL(MWidgetCallback& aWidgetCallback); |
|
89 void DispatchNetworkStateChangeEvent(); |
76 |
90 |
77 WebView* m_webview; |
91 WebView* m_webview; |
78 |
92 |
79 MWidgetEngineBridge* m_widgetengine; |
93 MWidgetEngineBridge* m_widgetengine; |
80 MWidgetCallback* m_widgetcallback; |
94 MWidgetCallback* m_widgetcallback; |
81 TInt iWidgetId; |
95 TInt iWidgetId; |
82 bool m_isWidgetPublishing; |
96 bool m_isWidgetPublishing; |
|
97 int m_topLevelLoadedpage; |
|
98 TNetworkState m_widgetNetState; |
83 |
99 |
84 #if defined(BRDO_LIW_FF) |
100 #if defined(BRDO_LIW_FF) |
85 MDeviceBridge* m_deviceBridge; |
101 MDeviceBridge* m_deviceBridge; |
|
102 void* m_securitySession; |
86 #endif |
103 #endif |
87 }; |
104 }; |
88 |
105 |
89 |
106 |
90 #endif |
107 #endif |