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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 60 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
61 float page_scale, | 61 float page_scale, |
62 float top_controls_delta) override; | 62 float top_controls_delta) override; |
63 void RequestNewOutputSurface() override; | 63 void RequestNewOutputSurface() override; |
64 void DidFailToInitializeOutputSurface() override; | 64 void DidFailToInitializeOutputSurface() override; |
65 void DidInitializeOutputSurface() override; | 65 void DidInitializeOutputSurface() override; |
66 void WillCommit() override; | 66 void WillCommit() override; |
67 void DidCommit() override; | 67 void DidCommit() override; |
68 void DidCommitAndDrawFrame() override; | 68 void DidCommitAndDrawFrame() override; |
69 void DidCompleteSwapBuffers() override; | 69 void DidCompleteSwapBuffers() override; |
| 70 void DidCompletePageScaleAnimation() override {} |
70 void RateLimitSharedMainThreadContext() override {} | 71 void RateLimitSharedMainThreadContext() override {} |
71 | 72 |
72 // blink::WebLayerTreeView implementation. | 73 // blink::WebLayerTreeView implementation. |
73 virtual void setRootLayer(const blink::WebLayer& layer); | 74 virtual void setRootLayer(const blink::WebLayer& layer); |
74 virtual void clearRootLayer(); | 75 virtual void clearRootLayer(); |
75 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 76 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
76 virtual blink::WebSize deviceViewportSize() const; | 77 virtual blink::WebSize deviceViewportSize() const; |
77 virtual void setDeviceScaleFactor(float); | 78 virtual void setDeviceScaleFactor(float); |
78 virtual float deviceScaleFactor() const; | 79 virtual float deviceScaleFactor() const; |
79 virtual void setBackgroundColor(blink::WebColor color); | 80 virtual void setBackgroundColor(blink::WebColor color); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 main_thread_compositor_task_runner_; | 132 main_thread_compositor_task_runner_; |
132 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 133 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
133 | 134 |
134 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 135 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
135 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 136 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace html_viewer | 139 } // namespace html_viewer |
139 | 140 |
140 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 141 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
OLD | NEW |