OLD | NEW |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 112 |
112 // The available drag operations (copy, move link...) allowed by the source. | 113 // The available drag operations (copy, move link...) allowed by the source. |
113 WebDragOperation operations_allowed_ = kWebDragOperationNone; | 114 WebDragOperation operations_allowed_ = kWebDragOperationNone; |
114 | 115 |
115 // The current drag operation as negotiated by the source and destination. | 116 // The current drag operation as negotiated by the source and destination. |
116 // When not equal to DragOperationNone, the drag data can be dropped onto the | 117 // When not equal to DragOperationNone, the drag data can be dropped onto the |
117 // current drop target in this WebView (the drop target can accept the drop). | 118 // current drop target in this WebView (the drop target can accept the drop). |
118 WebDragOperation drag_operation_ = kWebDragOperationNone; | 119 WebDragOperation drag_operation_ = kWebDragOperationNone; |
119 | 120 |
120 // Helper function to process events while pointer locked. | 121 // Helper function to process events while pointer locked. |
121 void PointerLockMouseEvent(const WebInputEvent&); | 122 void PointerLockMouseEvent(const WebCoalescedInputEvent&); |
122 | 123 |
123 private: | 124 private: |
124 void CancelDrag(); | 125 void CancelDrag(); |
| 126 LocalFrame* FocusedLocalFrameInWidget() const; |
125 | 127 |
126 static bool ignore_input_events_; | 128 static bool ignore_input_events_; |
127 RefPtr<UserGestureToken> pointer_lock_gesture_token_; | 129 RefPtr<UserGestureToken> pointer_lock_gesture_token_; |
128 | 130 |
129 friend class WebViewImpl; | 131 friend class WebViewImpl; |
130 }; | 132 }; |
131 | 133 |
132 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 134 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
133 | 135 |
134 } // namespace blink | 136 } // namespace blink |
135 | 137 |
136 #endif | 138 #endif |
OLD | NEW |