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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebFrameWidgetBase_h 5 #ifndef WebFrameWidgetBase_h
6 #define WebFrameWidgetBase_h 6 #define WebFrameWidgetBase_h
7 7
8 #include "core/clipboard/DataObject.h" 8 #include "core/clipboard/DataObject.h"
9 #include "public/platform/WebDragData.h" 9 #include "public/platform/WebDragData.h"
10 #include "public/web/WebFrameWidget.h" 10 #include "public/web/WebFrameWidget.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void dragSourceSystemDragEnded() override; 64 void dragSourceSystemDragEnded() override;
65 65
66 // Called when a drag-n-drop operation should begin. 66 // Called when a drag-n-drop operation should begin.
67 void startDragging(WebReferrerPolicy, 67 void startDragging(WebReferrerPolicy,
68 const WebDragData&, 68 const WebDragData&,
69 WebDragOperationsMask, 69 WebDragOperationsMask,
70 const WebImage& dragImage, 70 const WebImage& dragImage,
71 const WebPoint& dragImageOffset); 71 const WebPoint& dragImageOffset);
72 72
73 bool doingDragAndDrop() { return m_doingDragAndDrop; } 73 bool doingDragAndDrop() { return m_doingDragAndDrop; }
74 static void setIgnoreInputEvents(bool value) { s_ignoreInputEvents = value; }
75 static bool ignoreInputEvents() { return s_ignoreInputEvents; }
74 76
75 protected: 77 protected:
76 enum DragAction { DragEnter, DragOver }; 78 enum DragAction { DragEnter, DragOver };
77 79
78 // Consolidate some common code between starting a drag over a target and 80 // Consolidate some common code between starting a drag over a target and
79 // updating a drag over a target. If we're starting a drag, |isEntering| 81 // updating a drag over a target. If we're starting a drag, |isEntering|
80 // should be true. 82 // should be true.
81 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport, 83 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& pointInViewport,
82 const WebPoint& screenPoint, 84 const WebPoint& screenPoint,
83 DragAction, 85 DragAction,
(...skipping 13 matching lines...) Expand all
97 99
98 bool m_doingDragAndDrop = false; 100 bool m_doingDragAndDrop = false;
99 101
100 // The available drag operations (copy, move link...) allowed by the source. 102 // The available drag operations (copy, move link...) allowed by the source.
101 WebDragOperation m_operationsAllowed = WebDragOperationNone; 103 WebDragOperation m_operationsAllowed = WebDragOperationNone;
102 104
103 // The current drag operation as negotiated by the source and destination. 105 // The current drag operation as negotiated by the source and destination.
104 // When not equal to DragOperationNone, the drag data can be dropped onto the 106 // When not equal to DragOperationNone, the drag data can be dropped onto the
105 // current drop target in this WebView (the drop target can accept the drop). 107 // current drop target in this WebView (the drop target can accept the drop).
106 WebDragOperation m_dragOperation = WebDragOperationNone; 108 WebDragOperation m_dragOperation = WebDragOperationNone;
109
110 private:
111 static bool s_ignoreInputEvents;
107 }; 112 };
108 113
109 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); 114 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
110 115
111 } // namespace blink 116 } // namespace blink
112 117
113 #endif 118 #endif
OLDNEW
« 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