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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 const blink::WebLayer* overscrollElasticityLayer, | 103 const blink::WebLayer* overscrollElasticityLayer, |
104 const blink::WebLayer* pageScaleLayerLayer, | 104 const blink::WebLayer* pageScaleLayerLayer, |
105 const blink::WebLayer* innerViewportScrollLayer, | 105 const blink::WebLayer* innerViewportScrollLayer, |
106 const blink::WebLayer* outerViewportScrollLayer); | 106 const blink::WebLayer* outerViewportScrollLayer); |
107 virtual void clearViewportLayers(); | 107 virtual void clearViewportLayers(); |
108 virtual void registerSelection(const blink::WebSelection& selection) {} | 108 virtual void registerSelection(const blink::WebSelection& selection) {} |
109 virtual void clearSelection() {} | 109 virtual void clearSelection() {} |
110 virtual void setShowFPSCounter(bool) {} | 110 virtual void setShowFPSCounter(bool) {} |
111 virtual void setShowPaintRects(bool) {} | 111 virtual void setShowPaintRects(bool) {} |
112 virtual void setShowDebugBorders(bool) {} | 112 virtual void setShowDebugBorders(bool) {} |
113 virtual void setContinuousPaintingEnabled(bool) {} | |
114 virtual void setShowScrollBottleneckRects(bool) {} | 113 virtual void setShowScrollBottleneckRects(bool) {} |
115 | 114 |
116 private: | 115 private: |
117 // widget_ and view_ will outlive us. | 116 // widget_ and view_ will outlive us. |
118 blink::WebWidget* widget_; | 117 blink::WebWidget* widget_; |
119 mojo::View* view_; | 118 mojo::View* view_; |
120 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 119 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
121 scoped_ptr<cc::OutputSurface> output_surface_; | 120 scoped_ptr<cc::OutputSurface> output_surface_; |
122 scoped_refptr<base::SingleThreadTaskRunner> | 121 scoped_refptr<base::SingleThreadTaskRunner> |
123 main_thread_compositor_task_runner_; | 122 main_thread_compositor_task_runner_; |
124 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 123 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
125 | 124 |
126 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 125 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
127 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 126 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
128 }; | 127 }; |
129 | 128 |
130 } // namespace html_viewer | 129 } // namespace html_viewer |
131 | 130 |
132 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 131 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
OLD | NEW |