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 MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void setVisible(bool visible); | 82 virtual void setVisible(bool visible); |
83 virtual void setPageScaleFactorAndLimits(float page_scale_factor, | 83 virtual void setPageScaleFactorAndLimits(float page_scale_factor, |
84 float minimum, | 84 float minimum, |
85 float maximum); | 85 float maximum); |
86 virtual void startPageScaleAnimation(const blink::WebPoint& destination, | 86 virtual void startPageScaleAnimation(const blink::WebPoint& destination, |
87 bool use_anchor, | 87 bool use_anchor, |
88 float new_page_scale, | 88 float new_page_scale, |
89 double duration_sec); | 89 double duration_sec); |
90 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} | 90 virtual void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) {} |
91 virtual void setTopControlsContentOffset(float offset) {} | 91 virtual void setTopControlsContentOffset(float offset) {} |
| 92 virtual void setTopControlsShownRatio(float ratio) {} |
92 virtual void setNeedsAnimate(); | 93 virtual void setNeedsAnimate(); |
93 virtual bool commitRequested() const; | 94 virtual bool commitRequested() const; |
94 virtual void didStopFlinging() {} | 95 virtual void didStopFlinging() {} |
95 virtual void compositeAndReadbackAsync( | 96 virtual void compositeAndReadbackAsync( |
96 blink::WebCompositeAndReadbackAsyncCallback* callback) {} | 97 blink::WebCompositeAndReadbackAsyncCallback* callback) {} |
97 virtual void finishAllRendering(); | 98 virtual void finishAllRendering(); |
98 virtual void setDeferCommits(bool defer_commits) {} | 99 virtual void setDeferCommits(bool defer_commits) {} |
99 virtual void registerForAnimations(blink::WebLayer* layer); | 100 virtual void registerForAnimations(blink::WebLayer* layer); |
100 virtual void registerViewportLayers( | 101 virtual void registerViewportLayers( |
101 const blink::WebLayer* overscrollElasticityLayer, | 102 const blink::WebLayer* overscrollElasticityLayer, |
(...skipping 25 matching lines...) Expand all Loading... |
127 main_thread_compositor_task_runner_; | 128 main_thread_compositor_task_runner_; |
128 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 129 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
129 | 130 |
130 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 131 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
131 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 132 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace html_viewer | 135 } // namespace html_viewer |
135 | 136 |
136 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 137 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
OLD | NEW |