| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Set top controls height. If |shrinkViewport| is set to true, then Blink s
hrunk the viewport clip | 99 // Set top controls height. If |shrinkViewport| is set to true, then Blink s
hrunk the viewport clip |
| 100 // layers by the top controls height. | 100 // layers by the top controls height. |
| 101 virtual void setTopControlsHeight(float height, bool shrinkViewport) { } | 101 virtual void setTopControlsHeight(float height, bool shrinkViewport) { } |
| 102 | 102 |
| 103 // Flow control and scheduling --------------------------------------- | 103 // Flow control and scheduling --------------------------------------- |
| 104 | 104 |
| 105 // Indicates that an animation needs to be updated. | 105 // Indicates that an animation needs to be updated. |
| 106 virtual void setNeedsAnimate() = 0; | 106 virtual void setNeedsAnimate() = 0; |
| 107 | 107 |
| 108 // Indicates that blink needs a BeginFrame, but that nothing might actually
be dirty. |
| 109 virtual void setNeedsBeginFrame() { } |
| 110 |
| 111 // Indicates that blink needs a BeginFrame and to update compositor state. |
| 112 virtual void setNeedsCompositorUpdate() { } |
| 113 |
| 108 // Indicates whether a commit is pending. | 114 // Indicates whether a commit is pending. |
| 109 virtual bool commitRequested() const = 0; | 115 virtual bool commitRequested() const = 0; |
| 110 | 116 |
| 111 // Relays the end of a fling animation. | 117 // Relays the end of a fling animation. |
| 112 virtual void didStopFlinging() { } | 118 virtual void didStopFlinging() { } |
| 113 | 119 |
| 114 // Run layout and paint of all pending document changes asynchronously. | 120 // Run layout and paint of all pending document changes asynchronously. |
| 115 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback o
bject | 121 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback o
bject |
| 116 // alive until it is called. | 122 // alive until it is called. |
| 117 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } | 123 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Toggles continuous painting | 167 // Toggles continuous painting |
| 162 virtual void setContinuousPaintingEnabled(bool) { } | 168 virtual void setContinuousPaintingEnabled(bool) { } |
| 163 | 169 |
| 164 // Toggles scroll bottleneck rects on the HUD layer | 170 // Toggles scroll bottleneck rects on the HUD layer |
| 165 virtual void setShowScrollBottleneckRects(bool) { } | 171 virtual void setShowScrollBottleneckRects(bool) { } |
| 166 }; | 172 }; |
| 167 | 173 |
| 168 } // namespace blink | 174 } // namespace blink |
| 169 | 175 |
| 170 #endif // WebLayerTreeView_h | 176 #endif // WebLayerTreeView_h |
| OLD | NEW |