equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <../bidi.h> |
20 #include <../bidi.h> |
21 #include "WebPagePinchZoomHandler.h" |
21 #include "WebPagePinchZoomHandler.h" |
22 #include "WebView.h" |
22 #include "WebView.h" |
23 |
23 #include "PluginSkin.h" |
24 |
24 |
25 const int KBitmapUpdateTimeout = 100*1000; |
25 const int KBitmapUpdateTimeout = 100*1000; |
26 const int KPinchExitWaitTimeout = 300*1000; |
26 const int KPinchExitWaitTimeout = 300*1000; |
27 |
27 |
28 const int KPinchZoomStepSizeSmall = 3; |
28 const int KPinchZoomStepSizeSmall = 3; |
207 // ----------------------------------------------------------------------------- |
207 // ----------------------------------------------------------------------------- |
208 void WebPagePinchZoomHandler::updateBitmap(void) |
208 void WebPagePinchZoomHandler::updateBitmap(void) |
209 { |
209 { |
210 m_bitmapUpdateTimer->Cancel(); |
210 m_bitmapUpdateTimer->Cancel(); |
211 m_webView->restoreZoomLevel(m_webView->scalingFactor()); |
211 m_webView->restoreZoomLevel(m_webView->scalingFactor()); |
|
212 //update the plugin rect after pinch zoom exit |
|
213 PluginSkin* pluginskin = m_webView->mainFrame()->focusedPlugin(); |
|
214 if(pluginskin) |
|
215 { |
|
216 pluginskin->setPluginWinClipedRect(); |
|
217 } |
|
218 |
212 } |
219 } |
213 |
220 |
214 // ----------------------------------------------------------------------------- |
221 // ----------------------------------------------------------------------------- |
215 // handlepinchExitWaitTimer |
222 // handlepinchExitWaitTimer |
216 // ----------------------------------------------------------------------------- |
223 // ----------------------------------------------------------------------------- |