| 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/clipboard/DataObject.h" | 9 #include "core/clipboard/DataObject.h" |
| 9 #include "platform/UserGestureIndicator.h" | 10 #include "platform/UserGestureIndicator.h" |
| 10 #include "platform/wtf/Assertions.h" | 11 #include "platform/wtf/Assertions.h" |
| 11 #include "public/platform/WebDragData.h" | 12 #include "public/platform/WebDragData.h" |
| 12 #include "public/web/WebFrameWidget.h" | 13 #include "public/web/WebFrameWidget.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class AnimationWorkletProxyClient; | 17 class AnimationWorkletProxyClient; |
| 17 class CompositorAnimationHost; | 18 class CompositorAnimationHost; |
| 18 class CompositorWorkerProxyClient; | 19 class CompositorWorkerProxyClient; |
| 19 class GraphicsLayer; | 20 class GraphicsLayer; |
| 20 class WebImage; | 21 class WebImage; |
| 21 class WebLayer; | 22 class WebLayer; |
| 22 class WebLayerTreeView; | 23 class WebLayerTreeView; |
| 23 class WebViewBase; | 24 class WebViewBase; |
| 24 class HitTestResult; | 25 class HitTestResult; |
| 25 struct WebPoint; | 26 struct WebPoint; |
| 26 | 27 |
| 27 class WebFrameWidgetBase : public WebFrameWidget { | 28 class CORE_EXPORT WebFrameWidgetBase |
| 29 : public NON_EXPORTED_BASE(WebFrameWidget) { |
| 28 public: | 30 public: |
| 29 virtual bool ForSubframe() const = 0; | 31 virtual bool ForSubframe() const = 0; |
| 30 virtual void ScheduleAnimation() = 0; | 32 virtual void ScheduleAnimation() = 0; |
| 31 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; | 33 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() = 0; |
| 32 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; | 34 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() = 0; |
| 33 virtual WebWidgetClient* Client() const = 0; | 35 virtual WebWidgetClient* Client() const = 0; |
| 34 | 36 |
| 35 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching | 37 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching |
| 36 // the root layer. | 38 // the root layer. |
| 37 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; | 39 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 RefPtr<UserGestureToken> pointer_lock_gesture_token_; | 126 RefPtr<UserGestureToken> pointer_lock_gesture_token_; |
| 125 | 127 |
| 126 friend class WebViewImpl; | 128 friend class WebViewImpl; |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 131 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
| 130 | 132 |
| 131 } // namespace blink | 133 } // namespace blink |
| 132 | 134 |
| 133 #endif | 135 #endif |
| OLD | NEW |