2013-06-22 04:06:32 +02:00
|
|
|
Index: public/web/WebView.h
|
2013-05-07 23:48:34 +02:00
|
|
|
===================================================================
|
2013-09-03 23:48:12 +02:00
|
|
|
--- public/web/WebView.h (revision 157102)
|
2013-06-22 04:06:32 +02:00
|
|
|
+++ public/web/WebView.h (working copy)
|
2013-09-03 23:48:12 +02:00
|
|
|
@@ -444,6 +444,7 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
|
|
|
// Sets whether select popup menus should be rendered by the browser.
|
|
|
|
WEBKIT_EXPORT static void setUseExternalPopupMenus(bool);
|
|
|
|
+ virtual void setUseExternalPopupMenusThisInstance(bool) = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// Visited link state --------------------------------------------------
|
2013-07-24 22:15:18 +02:00
|
|
|
Index: Source/web/ChromeClientImpl.cpp
|
2013-05-07 23:48:34 +02:00
|
|
|
===================================================================
|
2013-09-03 23:48:12 +02:00
|
|
|
--- Source/web/ChromeClientImpl.cpp (revision 157102)
|
2013-07-24 22:15:18 +02:00
|
|
|
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
2013-09-03 23:48:12 +02:00
|
|
|
@@ -887,7 +887,7 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
PassRefPtr<PopupMenu> ChromeClientImpl::createPopupMenu(Frame& frame, PopupMenuClient* client) const
|
2013-05-07 23:48:34 +02:00
|
|
|
{
|
|
|
|
- if (WebViewImpl::useExternalPopupMenus())
|
|
|
|
+ if (m_webView->useExternalPopupMenus())
|
2013-06-04 19:41:37 +02:00
|
|
|
return adoptRef(new ExternalPopupMenu(frame, client, m_webView->client()));
|
2013-05-07 23:48:34 +02:00
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
return adoptRef(new PopupMenuChromium(frame, client));
|
2013-07-24 22:15:18 +02:00
|
|
|
Index: Source/web/WebViewImpl.cpp
|
2013-04-16 21:23:00 +02:00
|
|
|
===================================================================
|
2013-09-03 23:48:12 +02:00
|
|
|
--- Source/web/WebViewImpl.cpp (revision 157102)
|
2013-07-24 22:15:18 +02:00
|
|
|
+++ Source/web/WebViewImpl.cpp (working copy)
|
2013-09-03 23:48:12 +02:00
|
|
|
@@ -394,6 +394,7 @@
|
2013-08-15 21:38:55 +02:00
|
|
|
, m_fakePageScaleAnimationPageScaleFactor(0)
|
|
|
|
, m_fakePageScaleAnimationUseAnchor(false)
|
2013-05-07 23:48:34 +02:00
|
|
|
, m_contextMenuAllowed(false)
|
|
|
|
+ , m_shouldUseExternalPopupMenus(shouldUseExternalPopupMenus)
|
|
|
|
, m_doingDragAndDrop(false)
|
|
|
|
, m_ignoreInputEvents(false)
|
|
|
|
, m_suppressNextKeypressEvent(false)
|
2013-09-03 23:48:12 +02:00
|
|
|
@@ -3671,9 +3672,14 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
updateLayerTreeViewport();
|
|
|
|
}
|
|
|
|
|
|
|
|
+void WebViewImpl::setUseExternalPopupMenusThisInstance(bool useExternalPopupMenus)
|
|
|
|
+{
|
|
|
|
+ m_shouldUseExternalPopupMenus = useExternalPopupMenus;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
bool WebViewImpl::useExternalPopupMenus()
|
|
|
|
{
|
|
|
|
- return shouldUseExternalPopupMenus;
|
|
|
|
+ return m_shouldUseExternalPopupMenus;
|
|
|
|
}
|
|
|
|
|
2013-09-03 23:48:12 +02:00
|
|
|
void WebViewImpl::startDragging(Frame* frame,
|
2013-07-24 22:15:18 +02:00
|
|
|
Index: Source/web/WebViewImpl.h
|
2013-04-16 21:23:00 +02:00
|
|
|
===================================================================
|
2013-09-03 23:48:12 +02:00
|
|
|
--- Source/web/WebViewImpl.h (revision 157102)
|
2013-07-24 22:15:18 +02:00
|
|
|
+++ Source/web/WebViewImpl.h (working copy)
|
2013-08-15 21:38:55 +02:00
|
|
|
@@ -422,7 +422,8 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
|
|
|
// Returns true if popup menus should be rendered by the browser, false if
|
|
|
|
// they should be rendered by WebKit (which is the default).
|
|
|
|
- static bool useExternalPopupMenus();
|
|
|
|
+ void setUseExternalPopupMenusThisInstance(bool);
|
|
|
|
+ bool useExternalPopupMenus();
|
|
|
|
|
|
|
|
bool contextMenuAllowed() const
|
|
|
|
{
|
2013-09-03 23:48:12 +02:00
|
|
|
@@ -720,6 +721,8 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
|
|
|
bool m_contextMenuAllowed;
|
|
|
|
|
|
|
|
+ bool m_shouldUseExternalPopupMenus;
|
|
|
|
+
|
|
|
|
bool m_doingDragAndDrop;
|
|
|
|
|
|
|
|
bool m_ignoreInputEvents;
|