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" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const WebPoint& drag_image_offset); | 75 const WebPoint& drag_image_offset); |
76 | 76 |
77 bool DoingDragAndDrop() { return doing_drag_and_drop_; } | 77 bool DoingDragAndDrop() { return doing_drag_and_drop_; } |
78 static void SetIgnoreInputEvents(bool value) { ignore_input_events_ = value; } | 78 static void SetIgnoreInputEvents(bool value) { ignore_input_events_ = value; } |
79 static bool IgnoreInputEvents() { return ignore_input_events_; } | 79 static bool IgnoreInputEvents() { return ignore_input_events_; } |
80 | 80 |
81 // WebWidget methods. | 81 // WebWidget methods. |
82 void DidAcquirePointerLock() override; | 82 void DidAcquirePointerLock() override; |
83 void DidNotAcquirePointerLock() override; | 83 void DidNotAcquirePointerLock() override; |
84 void DidLosePointerLock() override; | 84 void DidLosePointerLock() override; |
| 85 void ShowContextMenu(WebMenuSourceType) override; |
85 | 86 |
86 protected: | 87 protected: |
87 enum DragAction { kDragEnter, kDragOver }; | 88 enum DragAction { kDragEnter, kDragOver }; |
88 | 89 |
89 // Consolidate some common code between starting a drag over a target and | 90 // Consolidate some common code between starting a drag over a target and |
90 // updating a drag over a target. If we're starting a drag, |isEntering| | 91 // updating a drag over a target. If we're starting a drag, |isEntering| |
91 // should be true. | 92 // should be true. |
92 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport, | 93 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport, |
93 const WebPoint& screen_point, | 94 const WebPoint& screen_point, |
94 DragAction, | 95 DragAction, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 RefPtr<UserGestureToken> pointer_lock_gesture_token_; | 127 RefPtr<UserGestureToken> pointer_lock_gesture_token_; |
127 | 128 |
128 friend class WebViewImpl; | 129 friend class WebViewImpl; |
129 }; | 130 }; |
130 | 131 |
131 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 132 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
134 | 135 |
135 #endif | 136 #endif |
OLD | NEW |