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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void SetDeviceScaleFactor(float) {} | 76 virtual void SetDeviceScaleFactor(float) {} |
77 | 77 |
78 // Sets the background color for the viewport. | 78 // Sets the background color for the viewport. |
79 virtual void SetBackgroundColor(WebColor) {} | 79 virtual void SetBackgroundColor(WebColor) {} |
80 | 80 |
81 // Sets whether this view is visible. In threaded mode, a view that is not | 81 // Sets whether this view is visible. In threaded mode, a view that is not |
82 // visible will not composite or trigger updateAnimations() or layout() calls | 82 // visible will not composite or trigger updateAnimations() or layout() calls |
83 // until it becomes visible. | 83 // until it becomes visible. |
84 virtual void SetVisible(bool) {} | 84 virtual void SetVisible(bool) {} |
85 | 85 |
| 86 // Sets whether this view is in fullscreen mode. |
| 87 virtual void SetIsFullscreen(bool) {} |
| 88 |
86 // Sets the current page scale factor and minimum / maximum limits. Both | 89 // Sets the current page scale factor and minimum / maximum limits. Both |
87 // limits are initially 1 (no page scale allowed). | 90 // limits are initially 1 (no page scale allowed). |
88 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, | 91 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, |
89 float minimum, | 92 float minimum, |
90 float maximum) {} | 93 float maximum) {} |
91 | 94 |
92 // Starts an animation of the page scale to a target scale factor and scroll | 95 // Starts an animation of the page scale to a target scale factor and scroll |
93 // offset. | 96 // offset. |
94 // If useAnchor is true, destination is a point on the screen that will remain | 97 // If useAnchor is true, destination is a point on the screen that will remain |
95 // fixed for the duration of the animation. | 98 // fixed for the duration of the animation. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // corresponding Swap completes (either with DidSwap or DidNotSwap). | 198 // corresponding Swap completes (either with DidSwap or DidNotSwap). |
196 virtual void NotifySwapTime(ReportTimeCallback callback) {} | 199 virtual void NotifySwapTime(ReportTimeCallback callback) {} |
197 | 200 |
198 virtual void RequestDecode(const PaintImage& image, | 201 virtual void RequestDecode(const PaintImage& image, |
199 const base::Callback<void(bool)>& callback) {} | 202 const base::Callback<void(bool)>& callback) {} |
200 }; | 203 }; |
201 | 204 |
202 } // namespace blink | 205 } // namespace blink |
203 | 206 |
204 #endif // WebLayerTreeView_h | 207 #endif // WebLayerTreeView_h |
OLD | NEW |