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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // If useAnchor is true, destination is a point on the screen that will rema
in fixed for the duration of the animation. | 91 // If useAnchor is true, destination is a point on the screen that will rema
in fixed for the duration of the animation. |
92 // If useAnchor is false, destination is the final top-left scroll position. | 92 // If useAnchor is false, destination is the final top-left scroll position. |
93 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) = 0; | 93 virtual void startPageScaleAnimation(const WebPoint& destination, bool useAn
chor, float newPageScale, double durationSec) = 0; |
94 | 94 |
95 | 95 |
96 // Flow control and scheduling --------------------------------------- | 96 // Flow control and scheduling --------------------------------------- |
97 | 97 |
98 // Indicates that an animation needs to be updated. | 98 // Indicates that an animation needs to be updated. |
99 virtual void setNeedsAnimate() = 0; | 99 virtual void setNeedsAnimate() = 0; |
100 | 100 |
101 // Indicates that the view needs to be redrawn. This is typically used when
the frontbuffer is damaged. | |
102 virtual void setNeedsRedraw() = 0; | |
103 | |
104 // Indicates whether a commit is pending. | 101 // Indicates whether a commit is pending. |
105 virtual bool commitRequested() const = 0; | 102 virtual bool commitRequested() const = 0; |
106 | 103 |
107 // Relays the end of a fling animation. | 104 // Relays the end of a fling animation. |
108 virtual void didStopFlinging() { } | 105 virtual void didStopFlinging() { } |
109 | 106 |
110 // Composites and attempts to read back the result into the provided | 107 // Composites and attempts to read back the result into the provided |
111 // buffer. If it wasn't possible, e.g. due to context lost, will return | 108 // buffer. If it wasn't possible, e.g. due to context lost, will return |
112 // false. Pixel format is 32bit (RGBA), and the provided buffer must be | 109 // false. Pixel format is 32bit (RGBA), and the provided buffer must be |
113 // large enough contain viewportSize().width() * viewportSize().height() | 110 // large enough contain viewportSize().width() * viewportSize().height() |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Toggles continuous painting | 144 // Toggles continuous painting |
148 virtual void setContinuousPaintingEnabled(bool) { } | 145 virtual void setContinuousPaintingEnabled(bool) { } |
149 | 146 |
150 // Toggles scroll bottleneck rects on the HUD layer | 147 // Toggles scroll bottleneck rects on the HUD layer |
151 virtual void setShowScrollBottleneckRects(bool) { } | 148 virtual void setShowScrollBottleneckRects(bool) { } |
152 }; | 149 }; |
153 | 150 |
154 } // namespace blink | 151 } // namespace blink |
155 | 152 |
156 #endif // WebLayerTreeView_h | 153 #endif // WebLayerTreeView_h |
OLD | NEW |