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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void SetDeviceScaleFactor(float) {} | 72 virtual void SetDeviceScaleFactor(float) {} |
73 | 73 |
74 // Sets the background color for the viewport. | 74 // Sets the background color for the viewport. |
75 virtual void SetBackgroundColor(WebColor) {} | 75 virtual void SetBackgroundColor(WebColor) {} |
76 | 76 |
77 // Sets whether this view is visible. In threaded mode, a view that is not | 77 // Sets whether this view is visible. In threaded mode, a view that is not |
78 // visible will not composite or trigger updateAnimations() or layout() calls | 78 // visible will not composite or trigger updateAnimations() or layout() calls |
79 // until it becomes visible. | 79 // until it becomes visible. |
80 virtual void SetVisible(bool) {} | 80 virtual void SetVisible(bool) {} |
81 | 81 |
| 82 // Sets whether this view is in fullscreen mode. |
| 83 virtual void SetIsFullscreen(bool) {} |
| 84 |
82 // Sets the current page scale factor and minimum / maximum limits. Both | 85 // Sets the current page scale factor and minimum / maximum limits. Both |
83 // limits are initially 1 (no page scale allowed). | 86 // limits are initially 1 (no page scale allowed). |
84 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, | 87 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, |
85 float minimum, | 88 float minimum, |
86 float maximum) {} | 89 float maximum) {} |
87 | 90 |
88 // Starts an animation of the page scale to a target scale factor and scroll | 91 // Starts an animation of the page scale to a target scale factor and scroll |
89 // offset. | 92 // offset. |
90 // If useAnchor is true, destination is a point on the screen that will remain | 93 // If useAnchor is true, destination is a point on the screen that will remain |
91 // fixed for the duration of the animation. | 94 // fixed for the duration of the animation. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 virtual void SetShowScrollBottleneckRects(bool) {} | 191 virtual void SetShowScrollBottleneckRects(bool) {} |
189 | 192 |
190 // ReportTimeCallback is a callback that should be fired when the | 193 // ReportTimeCallback is a callback that should be fired when the |
191 // corresponding Swap completes (either with DidSwap or DidNotSwap). | 194 // corresponding Swap completes (either with DidSwap or DidNotSwap). |
192 virtual void NotifySwapTime(ReportTimeCallback callback) {} | 195 virtual void NotifySwapTime(ReportTimeCallback callback) {} |
193 }; | 196 }; |
194 | 197 |
195 } // namespace blink | 198 } // namespace blink |
196 | 199 |
197 #endif // WebLayerTreeView_h | 200 #endif // WebLayerTreeView_h |
OLD | NEW |