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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetBase.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 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 #include "web/WebFrameWidgetBase.h" 5 #include "web/WebFrameWidgetBase.h"
6 6
7 #include "core/frame/FrameHost.h" 7 #include "core/frame/FrameHost.h"
8 #include "core/frame/VisualViewport.h" 8 #include "core/frame/VisualViewport.h"
9 #include "core/input/EventHandler.h" 9 #include "core/input/EventHandler.h"
10 #include "core/page/DragActions.h" 10 #include "core/page/DragActions.h"
(...skipping 26 matching lines...) Expand all
37 "mismatching enum : " #a) 37 "mismatching enum : " #a)
38 STATIC_ASSERT_ENUM(DragOperationNone, WebDragOperationNone); 38 STATIC_ASSERT_ENUM(DragOperationNone, WebDragOperationNone);
39 STATIC_ASSERT_ENUM(DragOperationCopy, WebDragOperationCopy); 39 STATIC_ASSERT_ENUM(DragOperationCopy, WebDragOperationCopy);
40 STATIC_ASSERT_ENUM(DragOperationLink, WebDragOperationLink); 40 STATIC_ASSERT_ENUM(DragOperationLink, WebDragOperationLink);
41 STATIC_ASSERT_ENUM(DragOperationGeneric, WebDragOperationGeneric); 41 STATIC_ASSERT_ENUM(DragOperationGeneric, WebDragOperationGeneric);
42 STATIC_ASSERT_ENUM(DragOperationPrivate, WebDragOperationPrivate); 42 STATIC_ASSERT_ENUM(DragOperationPrivate, WebDragOperationPrivate);
43 STATIC_ASSERT_ENUM(DragOperationMove, WebDragOperationMove); 43 STATIC_ASSERT_ENUM(DragOperationMove, WebDragOperationMove);
44 STATIC_ASSERT_ENUM(DragOperationDelete, WebDragOperationDelete); 44 STATIC_ASSERT_ENUM(DragOperationDelete, WebDragOperationDelete);
45 STATIC_ASSERT_ENUM(DragOperationEvery, WebDragOperationEvery); 45 STATIC_ASSERT_ENUM(DragOperationEvery, WebDragOperationEvery);
46 46
47 bool WebFrameWidgetBase::s_ignoreInputEvents = false;
48
47 WebDragOperation WebFrameWidgetBase::dragTargetDragEnter( 49 WebDragOperation WebFrameWidgetBase::dragTargetDragEnter(
48 const WebDragData& webDragData, 50 const WebDragData& webDragData,
49 const WebPoint& pointInViewport, 51 const WebPoint& pointInViewport,
50 const WebPoint& screenPoint, 52 const WebPoint& screenPoint,
51 WebDragOperationsMask operationsAllowed, 53 WebDragOperationsMask operationsAllowed,
52 int modifiers) { 54 int modifiers) {
53 DCHECK(!m_currentDragData); 55 DCHECK(!m_currentDragData);
54 56
55 m_currentDragData = DataObject::create(webDragData); 57 m_currentDragData = DataObject::create(webDragData);
56 m_operationsAllowed = operationsAllowed; 58 m_operationsAllowed = operationsAllowed;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 189
188 WebViewImpl* WebFrameWidgetBase::view() const { 190 WebViewImpl* WebFrameWidgetBase::view() const {
189 return toWebLocalFrameImpl(localRoot())->viewImpl(); 191 return toWebLocalFrameImpl(localRoot())->viewImpl();
190 } 192 }
191 193
192 Page* WebFrameWidgetBase::page() const { 194 Page* WebFrameWidgetBase::page() const {
193 return view()->page(); 195 return view()->page();
194 } 196 }
195 197
196 } // namespace blink 198 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetBase.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698