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 30 matching lines...) Expand all Loading... |
41 class WebLayer; | 41 class WebLayer; |
42 struct WebPoint; | 42 struct WebPoint; |
43 struct WebSelectionBound; | 43 struct WebSelectionBound; |
44 | 44 |
45 class WebLayerTreeView { | 45 class WebLayerTreeView { |
46 public: | 46 public: |
47 virtual ~WebLayerTreeView() { } | 47 virtual ~WebLayerTreeView() { } |
48 | 48 |
49 // Initialization and lifecycle -------------------------------------- | 49 // Initialization and lifecycle -------------------------------------- |
50 | 50 |
51 // Indicates that the compositing surface used by this WebLayerTreeView is r
eady to use. | |
52 // A WebLayerTreeView may request a context from its client before the surfa
ce is ready, | |
53 // but it won't attempt to use it. | |
54 virtual void setSurfaceReady() = 0; | |
55 | |
56 // Sets the root of the tree. The root is set by way of the constructor. | 51 // Sets the root of the tree. The root is set by way of the constructor. |
57 virtual void setRootLayer(const WebLayer&) = 0; | 52 virtual void setRootLayer(const WebLayer&) = 0; |
58 virtual void clearRootLayer() = 0; | 53 virtual void clearRootLayer() = 0; |
59 | 54 |
60 | 55 |
61 // View properties --------------------------------------------------- | 56 // View properties --------------------------------------------------- |
62 | 57 |
63 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; | 58 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; |
64 // Gives the viewport size in physical device pixels. | 59 // Gives the viewport size in physical device pixels. |
65 virtual WebSize deviceViewportSize() const = 0; | 60 virtual WebSize deviceViewportSize() const = 0; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Toggles continuous painting | 144 // Toggles continuous painting |
150 virtual void setContinuousPaintingEnabled(bool) { } | 145 virtual void setContinuousPaintingEnabled(bool) { } |
151 | 146 |
152 // Toggles scroll bottleneck rects on the HUD layer | 147 // Toggles scroll bottleneck rects on the HUD layer |
153 virtual void setShowScrollBottleneckRects(bool) { } | 148 virtual void setShowScrollBottleneckRects(bool) { } |
154 }; | 149 }; |
155 | 150 |
156 } // namespace blink | 151 } // namespace blink |
157 | 152 |
158 #endif // WebLayerTreeView_h | 153 #endif // WebLayerTreeView_h |
OLD | NEW |