OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 float new_page_scale, | 89 float new_page_scale, |
90 double duration_sec); | 90 double duration_sec); |
91 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} | 91 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} |
92 virtual void setNeedsAnimate(); | 92 virtual void setNeedsAnimate(); |
93 virtual bool commitRequested() const; | 93 virtual bool commitRequested() const; |
94 virtual void didStopFlinging() {} | 94 virtual void didStopFlinging() {} |
95 virtual void compositeAndReadbackAsync( | 95 virtual void compositeAndReadbackAsync( |
96 blink::WebCompositeAndReadbackAsyncCallback* callback) {} | 96 blink::WebCompositeAndReadbackAsyncCallback* callback) {} |
97 virtual void finishAllRendering(); | 97 virtual void finishAllRendering(); |
98 virtual void setDeferCommits(bool defer_commits) {} | 98 virtual void setDeferCommits(bool defer_commits) {} |
99 virtual void registerForAnimations(blink::WebLayer* layer); | |
100 virtual void registerViewportLayers( | 99 virtual void registerViewportLayers( |
101 const blink::WebLayer* overscrollElasticityLayer, | 100 const blink::WebLayer* overscrollElasticityLayer, |
102 const blink::WebLayer* pageScaleLayerLayer, | 101 const blink::WebLayer* pageScaleLayerLayer, |
103 const blink::WebLayer* innerViewportScrollLayer, | 102 const blink::WebLayer* innerViewportScrollLayer, |
104 const blink::WebLayer* outerViewportScrollLayer); | 103 const blink::WebLayer* outerViewportScrollLayer); |
105 virtual void clearViewportLayers(); | 104 virtual void clearViewportLayers(); |
106 virtual void registerSelection(const blink::WebSelection& selection) {} | 105 virtual void registerSelection(const blink::WebSelection& selection) {} |
107 virtual void clearSelection() {} | 106 virtual void clearSelection() {} |
108 virtual void setShowFPSCounter(bool) {} | 107 virtual void setShowFPSCounter(bool) {} |
109 virtual void setShowPaintRects(bool) {} | 108 virtual void setShowPaintRects(bool) {} |
(...skipping 16 matching lines...) Expand all Loading... |
126 main_thread_compositor_task_runner_; | 125 main_thread_compositor_task_runner_; |
127 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 126 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
128 | 127 |
129 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 128 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
130 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 129 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
131 }; | 130 }; |
132 | 131 |
133 } // namespace html_viewer | 132 } // namespace html_viewer |
134 | 133 |
135 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 134 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
OLD | NEW |