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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Sets the root of the tree. The root is set by way of the constructor. | 56 // Sets the root of the tree. The root is set by way of the constructor. |
57 virtual void setRootLayer(const WebLayer&) { } | 57 virtual void setRootLayer(const WebLayer&) { } |
58 virtual void clearRootLayer() { } | 58 virtual void clearRootLayer() { } |
59 | 59 |
60 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 60 virtual void attachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } |
61 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } | 61 virtual void detachCompositorAnimationTimeline(WebCompositorAnimationTimelin
e*) { } |
62 | 62 |
63 // View properties --------------------------------------------------- | 63 // View properties --------------------------------------------------- |
64 | 64 |
65 virtual void setViewportSize(const WebSize& deviceViewportSize) { } | 65 virtual void setViewportSize(const WebSize& deviceViewportSize) { } |
66 // Gives the viewport size in physical device pixels. | |
67 virtual WebSize deviceViewportSize() const { return WebSize(); } | |
68 | 66 |
69 virtual void setDeviceScaleFactor(float) { } | 67 virtual void setDeviceScaleFactor(float) { } |
70 virtual float deviceScaleFactor() const { return 0; } | 68 virtual float deviceScaleFactor() const { return 0; } |
71 | 69 |
72 // Sets the background color for the viewport. | 70 // Sets the background color for the viewport. |
73 virtual void setBackgroundColor(WebColor) { } | 71 virtual void setBackgroundColor(WebColor) { } |
74 | 72 |
75 // Sets the background transparency for the viewport. The default is 'false'
. | 73 // Sets the background transparency for the viewport. The default is 'false'
. |
76 virtual void setHasTransparentBackground(bool) { } | 74 virtual void setHasTransparentBackground(bool) { } |
77 | 75 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Toggles continuous painting | 167 // Toggles continuous painting |
170 virtual void setContinuousPaintingEnabled(bool) { } | 168 virtual void setContinuousPaintingEnabled(bool) { } |
171 | 169 |
172 // Toggles scroll bottleneck rects on the HUD layer | 170 // Toggles scroll bottleneck rects on the HUD layer |
173 virtual void setShowScrollBottleneckRects(bool) { } | 171 virtual void setShowScrollBottleneckRects(bool) { } |
174 }; | 172 }; |
175 | 173 |
176 } // namespace blink | 174 } // namespace blink |
177 | 175 |
178 #endif // WebLayerTreeView_h | 176 #endif // WebLayerTreeView_h |
OLD | NEW |