Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2585113005: DevTools: make ignoreInputEvents a static flag (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index a99121662e9db71c0b04b9bccffd3ae970b55855..32fa319a7dae63b8575759c5a1cd6acafa7cd509 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -358,7 +358,6 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
m_enableFakePageScaleAnimationForTesting(false),
m_fakePageScaleAnimationPageScaleFactor(0),
m_fakePageScaleAnimationUseAnchor(false),
- m_ignoreInputEvents(false),
m_compositorDeviceScaleFactorOverride(0),
m_suppressNextKeypressEvent(false),
m_imeAcceptEvents(true),
@@ -1747,7 +1746,6 @@ WebViewImpl* WebViewImpl::fromPage(Page* page) {
// WebWidget ------------------------------------------------------------------
void WebViewImpl::close() {
- WebDevToolsAgentImpl::webViewImplClosed(this);
DCHECK(allInstances().contains(this));
allInstances().remove(this);
@@ -2148,7 +2146,7 @@ WebInputEventResult WebViewImpl::handleInputEvent(
// Report the event to be NOT processed by WebKit, so that the browser can
// handle it appropriately.
- if (m_ignoreInputEvents)
+ if (WebFrameWidgetBase::ignoreInputEvents())
return WebInputEventResult::NotHandled;
AutoReset<const WebInputEvent*> currentEventChange(&m_currentInputEvent,
@@ -3721,11 +3719,6 @@ bool WebViewImpl::useExternalPopupMenus() {
return shouldUseExternalPopupMenus;
}
-void WebViewImpl::setIgnoreInputEvents(bool newValue) {
- DCHECK_NE(m_ignoreInputEvents, newValue);
- m_ignoreInputEvents = newValue;
-}
-
void WebViewImpl::setBackgroundColorOverride(WebColor color) {
m_backgroundColorOverride = color;
updateLayerTreeBackgroundColor();
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698