| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Sets the root of the tree. The root is set by way of the constructor. | 59 // Sets the root of the tree. The root is set by way of the constructor. |
| 60 virtual void setRootLayer(const WebLayer&) { } | 60 virtual void setRootLayer(const WebLayer&) { } |
| 61 virtual void clearRootLayer() { } | 61 virtual void clearRootLayer() { } |
| 62 | 62 |
| 63 // TODO(loyso): These should use CompositorAnimationTimeline. crbug.com/5845
51 | 63 // TODO(loyso): These should use CompositorAnimationTimeline. crbug.com/5845
51 |
| 64 virtual void attachCompositorAnimationTimeline(cc::AnimationTimeline*) { } | 64 virtual void attachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
| 65 virtual void detachCompositorAnimationTimeline(cc::AnimationTimeline*) { } | 65 virtual void detachCompositorAnimationTimeline(cc::AnimationTimeline*) { } |
| 66 | 66 |
| 67 // View properties --------------------------------------------------- | 67 // View properties --------------------------------------------------- |
| 68 | 68 |
| 69 // Viewport size is given in physical pixels. |
| 69 virtual void setViewportSize(const WebSize& deviceViewportSize) { } | 70 virtual void setViewportSize(const WebSize& deviceViewportSize) { } |
| 71 virtual WebSize getViewportSize() const { return WebSize(); } |
| 70 | 72 |
| 71 virtual void setDeviceScaleFactor(float) { } | 73 virtual void setDeviceScaleFactor(float) { } |
| 72 | 74 |
| 73 // Sets the background color for the viewport. | 75 // Sets the background color for the viewport. |
| 74 virtual void setBackgroundColor(WebColor) { } | 76 virtual void setBackgroundColor(WebColor) { } |
| 75 | 77 |
| 76 // Sets the background transparency for the viewport. The default is 'false'
. | 78 // Sets the background transparency for the viewport. The default is 'false'
. |
| 77 virtual void setHasTransparentBackground(bool) { } | 79 virtual void setHasTransparentBackground(bool) { } |
| 78 | 80 |
| 79 // Sets whether this view is visible. In threaded mode, a view that is not v
isible will not | 81 // Sets whether this view is visible. In threaded mode, a view that is not v
isible will not |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // Toggles the debug borders on layers | 169 // Toggles the debug borders on layers |
| 168 virtual void setShowDebugBorders(bool) { } | 170 virtual void setShowDebugBorders(bool) { } |
| 169 | 171 |
| 170 // Toggles scroll bottleneck rects on the HUD layer | 172 // Toggles scroll bottleneck rects on the HUD layer |
| 171 virtual void setShowScrollBottleneckRects(bool) { } | 173 virtual void setShowScrollBottleneckRects(bool) { } |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace blink | 176 } // namespace blink |
| 175 | 177 |
| 176 #endif // WebLayerTreeView_h | 178 #endif // WebLayerTreeView_h |
| OLD | NEW |