| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "WebBrowserControlsState.h" | 29 #include "WebBrowserControlsState.h" |
| 30 #include "WebColor.h" | 30 #include "WebColor.h" |
| 31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
| 32 #include "WebCompositorMutatorClient.h" | 32 #include "WebCompositorMutatorClient.h" |
| 33 #include "WebEventListenerProperties.h" | 33 #include "WebEventListenerProperties.h" |
| 34 #include "WebFloatPoint.h" | 34 #include "WebFloatPoint.h" |
| 35 #include "WebSize.h" | 35 #include "WebSize.h" |
| 36 | 36 |
| 37 namespace cc { | 37 namespace cc { |
| 38 class AnimationTimeline; | 38 class AnimationHost; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class WebCompositeAndReadbackAsyncCallback; | 43 class WebCompositeAndReadbackAsyncCallback; |
| 44 class WebLayer; | 44 class WebLayer; |
| 45 class WebLayoutAndPaintAsyncCallback; | 45 class WebLayoutAndPaintAsyncCallback; |
| 46 struct WebPoint; | 46 struct WebPoint; |
| 47 class WebSelection; | 47 class WebSelection; |
| 48 | 48 |
| 49 class WebLayerTreeView { | 49 class WebLayerTreeView { |
| 50 public: | 50 public: |
| 51 virtual ~WebLayerTreeView() {} | 51 virtual ~WebLayerTreeView() {} |
| 52 | 52 |
| 53 // Initialization and lifecycle -------------------------------------- | 53 // Initialization and lifecycle -------------------------------------- |
| 54 | 54 |
| 55 // Sets the root of the tree. The root is set by way of the constructor. | 55 // Sets the root of the tree. The root is set by way of the constructor. |
| 56 virtual void setRootLayer(const WebLayer&) {} | 56 virtual void setRootLayer(const WebLayer&) {} |
| 57 virtual void clearRootLayer() {} | 57 virtual void clearRootLayer() {} |
| 58 | 58 |
| 59 // TODO(loyso): These should use CompositorAnimationTimeline. crbug.com/584551 | 59 // TODO(loyso): This should use CompositorAnimationHost. crbug.com/584551 |
| 60 virtual void attachCompositorAnimationTimeline(cc::AnimationTimeline*) {} | 60 virtual cc::AnimationHost* compositorAnimationHost() { return nullptr; } |
| 61 virtual void detachCompositorAnimationTimeline(cc::AnimationTimeline*) {} | |
| 62 | 61 |
| 63 // View properties --------------------------------------------------- | 62 // View properties --------------------------------------------------- |
| 64 | 63 |
| 65 // Viewport size is given in physical pixels. | 64 // Viewport size is given in physical pixels. |
| 66 virtual void setViewportSize(const WebSize& deviceViewportSize) {} | 65 virtual void setViewportSize(const WebSize& deviceViewportSize) {} |
| 67 virtual WebSize getViewportSize() const { return WebSize(); } | 66 virtual WebSize getViewportSize() const { return WebSize(); } |
| 68 | 67 |
| 69 virtual void setDeviceScaleFactor(float) {} | 68 virtual void setDeviceScaleFactor(float) {} |
| 70 | 69 |
| 71 // Sets the background color for the viewport. | 70 // Sets the background color for the viewport. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Toggles the debug borders on layers | 181 // Toggles the debug borders on layers |
| 183 virtual void setShowDebugBorders(bool) {} | 182 virtual void setShowDebugBorders(bool) {} |
| 184 | 183 |
| 185 // Toggles scroll bottleneck rects on the HUD layer | 184 // Toggles scroll bottleneck rects on the HUD layer |
| 186 virtual void setShowScrollBottleneckRects(bool) {} | 185 virtual void setShowScrollBottleneckRects(bool) {} |
| 187 }; | 186 }; |
| 188 | 187 |
| 189 } // namespace blink | 188 } // namespace blink |
| 190 | 189 |
| 191 #endif // WebLayerTreeView_h | 190 #endif // WebLayerTreeView_h |
| OLD | NEW |