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 21 matching lines...) Expand all Loading... |
32 #include "WebNonCopyable.h" | 32 #include "WebNonCopyable.h" |
33 #include "WebPrivateOwnPtr.h" | 33 #include "WebPrivateOwnPtr.h" |
34 #include "WebSize.h" | 34 #include "WebSize.h" |
35 #include "WebTopControlsState.h" | 35 #include "WebTopControlsState.h" |
36 | 36 |
37 class SkBitmap; | 37 class SkBitmap; |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WebCompositeAndReadbackAsyncCallback; | 41 class WebCompositeAndReadbackAsyncCallback; |
| 42 class WebCompositorAnimationTimeline; |
42 class WebLayer; | 43 class WebLayer; |
43 struct WebPoint; | 44 struct WebPoint; |
44 struct WebSelectionBound; | 45 struct WebSelectionBound; |
45 class WebWidget; | 46 class WebWidget; |
46 | 47 |
47 class WebLayerTreeView { | 48 class WebLayerTreeView { |
48 public: | 49 public: |
49 virtual ~WebLayerTreeView() { } | 50 virtual ~WebLayerTreeView() { } |
50 | 51 |
51 // Initialization and lifecycle -------------------------------------- | 52 // Initialization and lifecycle -------------------------------------- |
52 | 53 |
53 // Sets the root of the tree. The root is set by way of the constructor. | 54 // Sets the root of the tree. The root is set by way of the constructor. |
54 virtual void setRootLayer(const WebLayer&) = 0; | 55 virtual void setRootLayer(const WebLayer&) = 0; |
55 virtual void clearRootLayer() = 0; | 56 virtual void clearRootLayer() = 0; |
56 | 57 |
| 58 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } |
| 59 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } |
57 | 60 |
58 // View properties --------------------------------------------------- | 61 // View properties --------------------------------------------------- |
59 | 62 |
60 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; | 63 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; |
61 // Gives the viewport size in physical device pixels. | 64 // Gives the viewport size in physical device pixels. |
62 virtual WebSize deviceViewportSize() const = 0; | 65 virtual WebSize deviceViewportSize() const = 0; |
63 | 66 |
64 virtual void setDeviceScaleFactor(float) = 0; | 67 virtual void setDeviceScaleFactor(float) = 0; |
65 virtual float deviceScaleFactor() const = 0; | 68 virtual float deviceScaleFactor() const = 0; |
66 | 69 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // Toggles continuous painting | 153 // Toggles continuous painting |
151 virtual void setContinuousPaintingEnabled(bool) { } | 154 virtual void setContinuousPaintingEnabled(bool) { } |
152 | 155 |
153 // Toggles scroll bottleneck rects on the HUD layer | 156 // Toggles scroll bottleneck rects on the HUD layer |
154 virtual void setShowScrollBottleneckRects(bool) { } | 157 virtual void setShowScrollBottleneckRects(bool) { } |
155 }; | 158 }; |
156 | 159 |
157 } // namespace blink | 160 } // namespace blink |
158 | 161 |
159 #endif // WebLayerTreeView_h | 162 #endif // WebLayerTreeView_h |
OLD | NEW |