| 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/clipboard/DataObject.h" | 8 #include "core/clipboard/DataObject.h" |
| 9 #include "platform/UserGestureIndicator.h" | 9 #include "platform/UserGestureIndicator.h" |
| 10 #include "platform/wtf/Assertions.h" | 10 #include "platform/wtf/Assertions.h" |
| 11 #include "public/platform/WebDragData.h" | 11 #include "public/platform/WebDragData.h" |
| 12 #include "public/web/WebFrameWidget.h" | 12 #include "public/web/WebFrameWidget.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class AnimationWorkletProxyClient; | 16 class AnimationWorkletProxyClient; |
| 17 class CompositorAnimationHost; | 17 class CompositorAnimationHost; |
| 18 class CompositorWorkerProxyClient; | 18 class CompositorWorkerProxyClient; |
| 19 class GraphicsLayer; | 19 class GraphicsLayer; |
| 20 class WebImage; | 20 class WebImage; |
| 21 class WebLayer; | 21 class WebLayer; |
| 22 class WebLayerTreeView; | 22 class WebLayerTreeView; |
| 23 class WebViewImpl; | 23 class WebViewBase; |
| 24 class HitTestResult; | 24 class HitTestResult; |
| 25 struct WebPoint; | 25 struct WebPoint; |
| 26 | 26 |
| 27 class WebFrameWidgetBase : public WebFrameWidget { | 27 class WebFrameWidgetBase : public WebFrameWidget { |
| 28 public: | 28 public: |
| 29 virtual bool ForSubframe() const = 0; | 29 virtual bool ForSubframe() const = 0; |
| 30 virtual void ScheduleAnimation() = 0; | 30 virtual void ScheduleAnimation() = 0; |
| 31 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; | 31 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; |
| 32 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; | 32 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; |
| 33 virtual WebWidgetClient* Client() const = 0; | 33 virtual WebWidgetClient* Client() const = 0; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // updating a drag over a target. If we're starting a drag, |isEntering| | 88 // updating a drag over a target. If we're starting a drag, |isEntering| |
| 89 // should be true. | 89 // should be true. |
| 90 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport, | 90 WebDragOperation DragTargetDragEnterOrOver(const WebPoint& point_in_viewport, |
| 91 const WebPoint& screen_point, | 91 const WebPoint& screen_point, |
| 92 DragAction, | 92 DragAction, |
| 93 int modifiers); | 93 int modifiers); |
| 94 | 94 |
| 95 // Helper function to call VisualViewport::viewportToRootFrame(). | 95 // Helper function to call VisualViewport::viewportToRootFrame(). |
| 96 WebPoint ViewportToRootFrame(const WebPoint& point_in_viewport) const; | 96 WebPoint ViewportToRootFrame(const WebPoint& point_in_viewport) const; |
| 97 | 97 |
| 98 WebViewImpl* View() const; | 98 WebViewBase* View() const; |
| 99 | 99 |
| 100 // Returns the page object associated with this widget. This may be null when | 100 // Returns the page object associated with this widget. This may be null when |
| 101 // the page is shutting down, but will be valid at all other times. | 101 // the page is shutting down, but will be valid at all other times. |
| 102 Page* GetPage() const; | 102 Page* GetPage() const; |
| 103 | 103 |
| 104 // A copy of the web drop data object we received from the browser. | 104 // A copy of the web drop data object we received from the browser. |
| 105 Persistent<DataObject> current_drag_data_; | 105 Persistent<DataObject> current_drag_data_; |
| 106 | 106 |
| 107 bool doing_drag_and_drop_ = false; | 107 bool doing_drag_and_drop_ = false; |
| 108 | 108 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 124 RefPtr<UserGestureToken> pointer_lock_gesture_token_; | 124 RefPtr<UserGestureToken> pointer_lock_gesture_token_; |
| 125 | 125 |
| 126 friend class WebViewImpl; | 126 friend class WebViewImpl; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 129 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
| 130 | 130 |
| 131 } // namespace blink | 131 } // namespace blink |
| 132 | 132 |
| 133 #endif | 133 #endif |
| OLD | NEW |