| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Indicates that an animation needs to be updated. | 91 // Indicates that an animation needs to be updated. |
| 92 virtual void setNeedsAnimate() = 0; | 92 virtual void setNeedsAnimate() = 0; |
| 93 | 93 |
| 94 // Indicates whether a commit is pending. | 94 // Indicates whether a commit is pending. |
| 95 virtual bool commitRequested() const = 0; | 95 virtual bool commitRequested() const = 0; |
| 96 | 96 |
| 97 // Relays the end of a fling animation. | 97 // Relays the end of a fling animation. |
| 98 virtual void didStopFlinging() { } | 98 virtual void didStopFlinging() { } |
| 99 | 99 |
| 100 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | |
| 101 // object alive until it is called. | |
| 102 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | |
| 103 | |
| 104 // Blocks until the most recently composited frame has finished rendering on
the GPU. | 100 // Blocks until the most recently composited frame has finished rendering on
the GPU. |
| 105 // This can have a significant performance impact and should be used with ca
re. | 101 // This can have a significant performance impact and should be used with ca
re. |
| 106 virtual void finishAllRendering() = 0; | 102 virtual void finishAllRendering() = 0; |
| 107 | 103 |
| 108 // Prevents updates to layer tree from becoming visible. | 104 // Prevents updates to layer tree from becoming visible. |
| 109 virtual void setDeferCommits(bool deferCommits) { } | 105 virtual void setDeferCommits(bool deferCommits) { } |
| 110 | 106 |
| 111 // Take responsiblity for this layer's animations, even if this layer hasn't
yet | |
| 112 // been added to the tree. | |
| 113 virtual void registerForAnimations(WebLayer* layer) { } | |
| 114 | |
| 115 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 107 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
| 116 virtual void registerViewportLayers( | 108 virtual void registerViewportLayers( |
| 117 const WebLayer* pageScaleLayerLayer, | 109 const WebLayer* pageScaleLayerLayer, |
| 118 const WebLayer* innerViewportScrollLayer, | 110 const WebLayer* innerViewportScrollLayer, |
| 119 const WebLayer* outerViewportScrollLayer) { } | 111 const WebLayer* outerViewportScrollLayer) { } |
| 120 virtual void clearViewportLayers() { } | 112 virtual void clearViewportLayers() { } |
| 121 | 113 |
| 122 // Used to update the active selection bounds. | 114 // Used to update the active selection bounds. |
| 123 // If the (empty) selection is an insertion point, |start| and |end| will be
identical with type |Caret|. | 115 // If the (empty) selection is an insertion point, |start| and |end| will be
identical with type |Caret|. |
| 124 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| ma
y share the same type, | 116 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| ma
y share the same type, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 140 // Toggles continuous painting | 132 // Toggles continuous painting |
| 141 virtual void setContinuousPaintingEnabled(bool) { } | 133 virtual void setContinuousPaintingEnabled(bool) { } |
| 142 | 134 |
| 143 // Toggles scroll bottleneck rects on the HUD layer | 135 // Toggles scroll bottleneck rects on the HUD layer |
| 144 virtual void setShowScrollBottleneckRects(bool) { } | 136 virtual void setShowScrollBottleneckRects(bool) { } |
| 145 }; | 137 }; |
| 146 | 138 |
| 147 } // namespace blink | 139 } // namespace blink |
| 148 | 140 |
| 149 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYERTREEVIEW_H_ | 141 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYERTREEVIEW_H_ |
| OLD | NEW |