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 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 68 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
69 virtual void DidBeginMainFrame() OVERRIDE {} | 69 virtual void DidBeginMainFrame() OVERRIDE {} |
70 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} | 70 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE {} |
71 virtual void Layout() OVERRIDE; | 71 virtual void Layout() OVERRIDE; |
| 72 virtual void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, |
| 73 const gfx::Vector2d& outer_delta, |
| 74 float page_scale, |
| 75 float top_controls_delta) OVERRIDE; |
72 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 76 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
73 float page_scale, | 77 float page_scale, |
74 float top_controls_delta) OVERRIDE; | 78 float top_controls_delta) OVERRIDE; |
75 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 79 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
76 OVERRIDE; | 80 OVERRIDE; |
77 virtual void DidInitializeOutputSurface() OVERRIDE {} | 81 virtual void DidInitializeOutputSurface() OVERRIDE {} |
78 virtual void WillCommit() OVERRIDE {} | 82 virtual void WillCommit() OVERRIDE {} |
79 virtual void DidCommit() OVERRIDE {} | 83 virtual void DidCommit() OVERRIDE {} |
80 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 84 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
81 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 85 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
82 | 86 |
83 // cc::LayerTreeHostSingleThreadClient implementation. | 87 // cc::LayerTreeHostSingleThreadClient implementation. |
84 virtual void DidPostSwapBuffers() OVERRIDE {} | 88 virtual void DidPostSwapBuffers() OVERRIDE {} |
85 virtual void DidAbortSwapBuffers() OVERRIDE {} | 89 virtual void DidAbortSwapBuffers() OVERRIDE {} |
86 | 90 |
87 private: | 91 private: |
88 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 92 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
89 | 93 |
90 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 94 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
91 }; | 95 }; |
92 | 96 |
93 } // namespace content | 97 } // namespace content |
94 | 98 |
95 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 99 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |