| 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 |
| 9 #include "public/platform/WebDragData.h" | 10 #include "public/platform/WebDragData.h" |
| 10 #include "public/web/WebFrameWidget.h" | 11 #include "public/web/WebFrameWidget.h" |
| 11 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 16 class AnimationWorkletProxyClient; |
| 15 class CompositorAnimationHost; | 17 class CompositorAnimationHost; |
| 16 class CompositorProxyClient; | 18 class CompositorWorkerProxyClient; |
| 17 class GraphicsLayer; | 19 class GraphicsLayer; |
| 18 class WebImage; | 20 class WebImage; |
| 19 class WebLayer; | 21 class WebLayer; |
| 20 class WebLayerTreeView; | 22 class WebLayerTreeView; |
| 21 class WebViewImpl; | 23 class WebViewImpl; |
| 22 class HitTestResult; | 24 class HitTestResult; |
| 23 struct WebPoint; | 25 struct WebPoint; |
| 24 | 26 |
| 25 class WebFrameWidgetBase : public WebFrameWidget { | 27 class WebFrameWidgetBase : public WebFrameWidget { |
| 26 public: | 28 public: |
| 27 virtual bool forSubframe() const = 0; | 29 virtual bool forSubframe() const = 0; |
| 28 virtual void scheduleAnimation() = 0; | 30 virtual void scheduleAnimation() = 0; |
| 29 virtual CompositorProxyClient* createCompositorProxyClient() = 0; | 31 virtual CompositorWorkerProxyClient* createCompositorWorkerProxyClient() = 0; |
| 32 virtual AnimationWorkletProxyClient* createAnimationWorkletProxyClient() = 0; |
| 30 virtual WebWidgetClient* client() const = 0; | 33 virtual WebWidgetClient* client() const = 0; |
| 31 | 34 |
| 32 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching | 35 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching |
| 33 // the root layer. | 36 // the root layer. |
| 34 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0; | 37 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0; |
| 35 | 38 |
| 36 // Sets the root layer. |WebLayer| can be null when detaching the root layer. | 39 // Sets the root layer. |WebLayer| can be null when detaching the root layer. |
| 37 virtual void setRootLayer(WebLayer*) = 0; | 40 virtual void setRootLayer(WebLayer*) = 0; |
| 38 | 41 |
| 39 virtual WebLayerTreeView* getLayerTreeView() const = 0; | 42 virtual WebLayerTreeView* getLayerTreeView() const = 0; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void cancelDrag(); | 112 void cancelDrag(); |
| 110 | 113 |
| 111 static bool s_ignoreInputEvents; | 114 static bool s_ignoreInputEvents; |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 117 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
| 115 | 118 |
| 116 } // namespace blink | 119 } // namespace blink |
| 117 | 120 |
| 118 #endif | 121 #endif |
| OLD | NEW |