2013-10-18 18:33:56 +02:00
|
|
|
Index: public/web/WebView.h
|
|
|
|
===================================================================
|
2014-02-19 17:27:54 +01:00
|
|
|
--- public/web/WebView.h (revision 167304)
|
2013-10-18 18:33:56 +02:00
|
|
|
+++ public/web/WebView.h (working copy)
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -424,6 +424,7 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
|
|
|
// Sets whether select popup menus should be rendered by the browser.
|
2013-10-17 01:09:07 +02:00
|
|
|
BLINK_EXPORT static void setUseExternalPopupMenus(bool);
|
2013-05-07 23:48:34 +02:00
|
|
|
+ virtual void setUseExternalPopupMenusThisInstance(bool) = 0;
|
|
|
|
|
2014-01-02 23:41:11 +01:00
|
|
|
// Hides any popup (suggestions, selects...) that might be showing.
|
|
|
|
virtual void hidePopups() = 0;
|
2013-10-18 18:33:56 +02:00
|
|
|
Index: Source/web/ChromeClientImpl.cpp
|
|
|
|
===================================================================
|
2014-02-19 17:27:54 +01:00
|
|
|
--- Source/web/ChromeClientImpl.cpp (revision 167304)
|
2013-10-18 18:33:56 +02:00
|
|
|
+++ Source/web/ChromeClientImpl.cpp (working copy)
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -751,7 +751,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())
|
2014-01-02 23:41:11 +01:00
|
|
|
return adoptRef(new ExternalPopupMenu(frame, client, *m_webView));
|
2013-05-07 23:48:34 +02:00
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
return adoptRef(new PopupMenuChromium(frame, client));
|
2013-10-18 18:33:56 +02:00
|
|
|
Index: Source/web/WebViewImpl.cpp
|
|
|
|
===================================================================
|
2014-02-19 17:27:54 +01:00
|
|
|
--- Source/web/WebViewImpl.cpp (revision 167304)
|
2013-10-18 18:33:56 +02:00
|
|
|
+++ Source/web/WebViewImpl.cpp (working copy)
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -343,6 +343,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)
|
2013-10-17 01:09:07 +02:00
|
|
|
, m_compositorDeviceScaleFactorOverride(0)
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -3521,9 +3522,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-10-18 18:33:56 +02:00
|
|
|
Index: Source/web/WebViewImpl.h
|
|
|
|
===================================================================
|
2014-02-19 17:27:54 +01:00
|
|
|
--- Source/web/WebViewImpl.h (revision 167304)
|
2013-10-18 18:33:56 +02:00
|
|
|
+++ Source/web/WebViewImpl.h (working copy)
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -401,7 +401,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
|
|
|
|
{
|
2014-02-19 17:27:54 +01:00
|
|
|
@@ -685,6 +686,8 @@
|
2013-05-07 23:48:34 +02:00
|
|
|
|
|
|
|
bool m_contextMenuAllowed;
|
|
|
|
|
|
|
|
+ bool m_shouldUseExternalPopupMenus;
|
|
|
|
+
|
|
|
|
bool m_doingDragAndDrop;
|
|
|
|
|
|
|
|
bool m_ignoreInputEvents;
|