OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 5 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/trees/layer_tree_host_client.h" | 9 #include "cc/trees/layer_tree_host_client.h" |
10 #include "cc/trees/layer_tree_host_single_thread_client.h" | 10 #include "cc/trees/layer_tree_host_single_thread_client.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void registerSelection( | 62 virtual void registerSelection( |
63 const blink::WebSelectionBound& start, | 63 const blink::WebSelectionBound& start, |
64 const blink::WebSelectionBound& end) override; | 64 const blink::WebSelectionBound& end) override; |
65 virtual void clearSelection() override; | 65 virtual void clearSelection() override; |
66 | 66 |
67 // cc::LayerTreeHostClient implementation. | 67 // cc::LayerTreeHostClient implementation. |
68 void WillBeginMainFrame() override {} | 68 void WillBeginMainFrame() override {} |
69 void DidBeginMainFrame() override {} | 69 void DidBeginMainFrame() override {} |
70 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 70 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
71 void Layout() override; | 71 void Layout() override; |
72 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 72 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
73 const gfx::Vector2d& outer_delta, | 73 const gfx::Vector2dF& outer_delta, |
74 const gfx::Vector2dF& elastic_overscroll_delta, | 74 const gfx::Vector2dF& elastic_overscroll_delta, |
75 float page_scale, | 75 float page_scale, |
76 float top_controls_delta) override; | 76 float top_controls_delta) override; |
77 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 77 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
78 float page_scale, | 78 float page_scale, |
79 float top_controls_delta) override; | 79 float top_controls_delta) override; |
80 void RequestNewOutputSurface() override; | 80 void RequestNewOutputSurface() override; |
81 void DidInitializeOutputSurface() override {} | 81 void DidInitializeOutputSurface() override {} |
82 void DidFailToInitializeOutputSurface() override; | 82 void DidFailToInitializeOutputSurface() override; |
83 void WillCommit() override {} | 83 void WillCommit() override {} |
84 void DidCommit() override {} | 84 void DidCommit() override {} |
85 void DidCommitAndDrawFrame() override {} | 85 void DidCommitAndDrawFrame() override {} |
86 void DidCompleteSwapBuffers() override {} | 86 void DidCompleteSwapBuffers() override {} |
87 void DidCompletePageScaleAnimation() override {} | 87 void DidCompletePageScaleAnimation() override {} |
88 | 88 |
89 // cc::LayerTreeHostSingleThreadClient implementation. | 89 // cc::LayerTreeHostSingleThreadClient implementation. |
90 void DidPostSwapBuffers() override {} | 90 void DidPostSwapBuffers() override {} |
91 void DidAbortSwapBuffers() override {} | 91 void DidAbortSwapBuffers() override {} |
92 | 92 |
93 private: | 93 private: |
94 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 94 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 96 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace content | 99 } // namespace content |
100 | 100 |
101 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 101 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |