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 19 matching lines...) Expand all Loading... |
30 #include "WebCommon.h" | 30 #include "WebCommon.h" |
31 #include "WebEventListenerProperties.h" | 31 #include "WebEventListenerProperties.h" |
32 #include "WebFloatPoint.h" | 32 #include "WebFloatPoint.h" |
33 #include "WebNonCopyable.h" | 33 #include "WebNonCopyable.h" |
34 #include "WebPrivateOwnPtr.h" | 34 #include "WebPrivateOwnPtr.h" |
35 #include "WebSize.h" | 35 #include "WebSize.h" |
36 #include "WebTopControlsState.h" | 36 #include "WebTopControlsState.h" |
37 | 37 |
38 class SkBitmap; | 38 class SkBitmap; |
39 | 39 |
| 40 namespace cc { |
| 41 class AnimationTimeline; |
| 42 } |
| 43 |
40 namespace blink { | 44 namespace blink { |
41 | 45 |
42 class WebCompositeAndReadbackAsyncCallback; | 46 class WebCompositeAndReadbackAsyncCallback; |
43 class WebCompositorAnimationTimeline; | |
44 class WebLayer; | 47 class WebLayer; |
45 class WebLayoutAndPaintAsyncCallback; | 48 class WebLayoutAndPaintAsyncCallback; |
46 struct WebPoint; | 49 struct WebPoint; |
47 struct WebSelectionBound; | 50 struct WebSelectionBound; |
48 class WebSelection; | 51 class WebSelection; |
49 class WebWidget; | 52 class WebWidget; |
50 | 53 |
51 class WebLayerTreeView { | 54 class WebLayerTreeView { |
52 public: | 55 public: |
53 virtual ~WebLayerTreeView() { } | 56 virtual ~WebLayerTreeView() { } |
54 | 57 |
55 // Initialization and lifecycle -------------------------------------- | 58 // Initialization and lifecycle -------------------------------------- |
56 | 59 |
57 // Sets the root of the tree. The root is set by way of the constructor. | 60 // Sets the root of the tree. The root is set by way of the constructor. |
58 virtual void setRootLayer(const WebLayer&) { } | 61 virtual void setRootLayer(const WebLayer&) { } |
59 virtual void clearRootLayer() { } | 62 virtual void clearRootLayer() { } |
60 | 63 |
61 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 64 // TODO(loyso): These should use CompositorAnimationTimeline. crbug.com/5845
51 |
62 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 65 virtual void attachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
| 66 virtual void detachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
63 | 67 |
64 // View properties --------------------------------------------------- | 68 // View properties --------------------------------------------------- |
65 | 69 |
66 virtual void setViewportSize(const WebSize& deviceViewportSize) { } | 70 virtual void setViewportSize(const WebSize& deviceViewportSize) { } |
67 | 71 |
68 virtual void setDeviceScaleFactor(float) { } | 72 virtual void setDeviceScaleFactor(float) { } |
69 | 73 |
70 // Sets the background color for the viewport. | 74 // Sets the background color for the viewport. |
71 virtual void setBackgroundColor(WebColor) { } | 75 virtual void setBackgroundColor(WebColor) { } |
72 | 76 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Toggles the debug borders on layers | 166 // Toggles the debug borders on layers |
163 virtual void setShowDebugBorders(bool) { } | 167 virtual void setShowDebugBorders(bool) { } |
164 | 168 |
165 // Toggles scroll bottleneck rects on the HUD layer | 169 // Toggles scroll bottleneck rects on the HUD layer |
166 virtual void setShowScrollBottleneckRects(bool) { } | 170 virtual void setShowScrollBottleneckRects(bool) { } |
167 }; | 171 }; |
168 | 172 |
169 } // namespace blink | 173 } // namespace blink |
170 | 174 |
171 #endif // WebLayerTreeView_h | 175 #endif // WebLayerTreeView_h |
OLD | NEW |