equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <Browser_platform_variant.hrh> |
20 #include <Browser_platform_variant.hrh> |
21 #include "config.h" |
21 #include "config.h" |
22 #include "../../bidi.h" |
22 #include "../../bidi.h" |
23 #include <coemain.h> |
23 #include <coemain.h> |
|
24 #include "brctl.h" |
|
25 #include <brctldefs.h> |
24 #include "WebGestureInterface.h" |
26 #include "WebGestureInterface.h" |
25 #include "WebView.h" |
27 #include "WebView.h" |
26 #include "WebPointerEventHandler.h" |
28 #include "WebPointerEventHandler.h" |
27 |
29 |
28 const TInt TOUCH_AREA_TIMEOUT = 200; |
30 const TInt TOUCH_AREA_TIMEOUT = 200; |
105 gestureParams.SetEnabled(stmGesture::EGestureUidRelease, ETrue); |
107 gestureParams.SetEnabled(stmGesture::EGestureUidRelease, ETrue); |
106 gestureParams.SetEnabled(stmGesture::EGestureUidPan, ETrue); |
108 gestureParams.SetEnabled(stmGesture::EGestureUidPan, ETrue); |
107 gestureParams.SetEnabled(stmGesture::EGestureUidFlick, ETrue); |
109 gestureParams.SetEnabled(stmGesture::EGestureUidFlick, ETrue); |
108 gestureParams.SetEnabled(stmGesture::EGestureUidLongPress, ETrue); |
110 gestureParams.SetEnabled(stmGesture::EGestureUidLongPress, ETrue); |
109 #ifdef BRDO_MULTITOUCH_ENABLED_FF |
111 #ifdef BRDO_MULTITOUCH_ENABLED_FF |
110 gestureParams.SetEnabled(stmGesture::EGestureUidPinch, ETrue); |
112 if (m_webview->brCtl()->capabilities() & TBrCtlDefs::ECapabilityPinchZoom) { |
|
113 gestureParams.SetEnabled(stmGesture::EGestureUidPinch, ETrue); |
|
114 } |
|
115 else { |
|
116 gestureParams.SetEnabled(stmGesture::EGestureUidPinch, EFalse); |
|
117 } |
111 #else |
118 #else |
112 gestureParams.SetEnabled(stmGesture::EGestureUidPinch, EFalse); |
119 gestureParams.SetEnabled(stmGesture::EGestureUidPinch, EFalse); |
113 #endif |
120 #endif |
114 |
121 |
115 //Set other parameters |
122 //Set other parameters |
163 { |
170 { |
164 m_webview->pointerEventHandler()->HandleGestureEventL(aGesture); |
171 m_webview->pointerEventHandler()->HandleGestureEventL(aGesture); |
165 } |
172 } |
166 |
173 |
167 |
174 |
|
175 |