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

Side by Side Diff: third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h

Issue 2807433003: No pointer captured when the pointer lock is applied (Closed)
Patch Set: Change the tests and move code to WebFrameWidgetBase Created 3 years, 6 months 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/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/clipboard/DataObject.h" 9 #include "core/clipboard/DataObject.h"
10 #include "platform/UserGestureIndicator.h" 10 #include "platform/UserGestureIndicator.h"
11 #include "platform/wtf/Assertions.h" 11 #include "platform/wtf/Assertions.h"
12 #include "public/platform/WebCoalescedInputEvent.h"
12 #include "public/platform/WebDragData.h" 13 #include "public/platform/WebDragData.h"
13 #include "public/web/WebFrameWidget.h" 14 #include "public/web/WebFrameWidget.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class AnimationWorkletProxyClient; 18 class AnimationWorkletProxyClient;
18 class CompositorAnimationHost; 19 class CompositorAnimationHost;
19 class CompositorWorkerProxyClient; 20 class CompositorWorkerProxyClient;
20 class GraphicsLayer; 21 class GraphicsLayer;
21 class WebImage; 22 class WebImage;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 // The available drag operations (copy, move link...) allowed by the source. 112 // The available drag operations (copy, move link...) allowed by the source.
112 WebDragOperation operations_allowed_ = kWebDragOperationNone; 113 WebDragOperation operations_allowed_ = kWebDragOperationNone;
113 114
114 // The current drag operation as negotiated by the source and destination. 115 // The current drag operation as negotiated by the source and destination.
115 // When not equal to DragOperationNone, the drag data can be dropped onto the 116 // When not equal to DragOperationNone, the drag data can be dropped onto the
116 // current drop target in this WebView (the drop target can accept the drop). 117 // current drop target in this WebView (the drop target can accept the drop).
117 WebDragOperation drag_operation_ = kWebDragOperationNone; 118 WebDragOperation drag_operation_ = kWebDragOperationNone;
118 119
119 // Helper function to process events while pointer locked. 120 // Helper function to process events while pointer locked.
120 void PointerLockMouseEvent(const WebInputEvent&); 121 void PointerLockMouseEvent(const WebCoalescedInputEvent&);
121 122
122 private: 123 private:
123 void CancelDrag(); 124 void CancelDrag();
125 LocalFrame* FocusedLocalFrameInWidget() const;
124 126
125 static bool ignore_input_events_; 127 static bool ignore_input_events_;
126 RefPtr<UserGestureToken> pointer_lock_gesture_token_; 128 RefPtr<UserGestureToken> pointer_lock_gesture_token_;
127 129
128 friend class WebViewImpl; 130 friend class WebViewImpl;
129 }; 131 };
130 132
131 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); 133 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true);
132 134
133 } // namespace blink 135 } // namespace blink
134 136
135 #endif 137 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698