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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void set_widget(blink::WebWidget* widget) { widget_ = widget; } | 44 void set_widget(blink::WebWidget* widget) { widget_ = widget; } |
45 void set_view(View* view) { view_ = view; } | 45 void set_view(View* view) { view_ = view; } |
46 | 46 |
47 // cc::LayerTreeHostClient implementation. | 47 // cc::LayerTreeHostClient implementation. |
48 void WillBeginMainFrame(int frame_id) override; | 48 void WillBeginMainFrame(int frame_id) override; |
49 void DidBeginMainFrame() override; | 49 void DidBeginMainFrame() override; |
50 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 50 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
51 void Layout() override; | 51 void Layout() override; |
52 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 52 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, |
53 const gfx::Vector2d& outer_delta, | 53 const gfx::Vector2d& outer_delta, |
| 54 const gfx::Vector2dF& elastic_overscroll_delta, |
54 float page_scale, | 55 float page_scale, |
55 float top_controls_delta) override; | 56 float top_controls_delta) override; |
56 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 57 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
57 float page_scale, | 58 float page_scale, |
58 float top_controls_delta) override; | 59 float top_controls_delta) override; |
59 void RequestNewOutputSurface(bool fallback) override; | 60 void RequestNewOutputSurface(bool fallback) override; |
60 void DidInitializeOutputSurface() override; | 61 void DidInitializeOutputSurface() override; |
61 void WillCommit() override; | 62 void WillCommit() override; |
62 void DidCommit() override; | 63 void DidCommit() override; |
63 void DidCommitAndDrawFrame() override; | 64 void DidCommitAndDrawFrame() override; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 main_thread_compositor_task_runner_; | 129 main_thread_compositor_task_runner_; |
129 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 130 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
130 | 131 |
131 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 132 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
132 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 133 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace mojo | 136 } // namespace mojo |
136 | 137 |
137 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ | 138 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ |
OLD | NEW |