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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.h

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
Index: third_party/WebKit/Source/web/WebFrameWidgetBase.h
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.h b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
index 12d3a4885423261738565c669b125e6620651e0f..67d3dd7a55550a2abfe434e5d871afc30c64ee89 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.h
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.h
@@ -71,6 +71,8 @@ class WebFrameWidgetBase : public WebFrameWidget {
const WebPoint& dragImageOffset);
bool doingDragAndDrop() { return m_doingDragAndDrop; }
+ static void setIgnoreInputEvents(bool value) { s_ignoreInputEvents = value; }
+ static bool ignoreInputEvents() { return s_ignoreInputEvents; }
protected:
enum DragAction { DragEnter, DragOver };
@@ -104,6 +106,9 @@ class WebFrameWidgetBase : public WebFrameWidget {
// When not equal to DragOperationNone, the drag data can be dropped onto the
// current drop target in this WebView (the drop target can accept the drop).
WebDragOperation m_dragOperation = WebDragOperationNone;
+
+ private:
+ static bool s_ignoreInputEvents;
};
DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698