Chromium Code Reviews| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/test/test_task_graph_runner.h" | 10 #include "cc/test/test_task_graph_runner.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 void setDeferCommits(bool defer_commits) override; | 60 void setDeferCommits(bool defer_commits) override; |
| 61 void registerForAnimations(blink::WebLayer* layer) override; | 61 void registerForAnimations(blink::WebLayer* layer) override; |
| 62 void registerViewportLayers( | 62 void registerViewportLayers( |
| 63 const blink::WebLayer* overscrollElasticityLayer, | 63 const blink::WebLayer* overscrollElasticityLayer, |
| 64 const blink::WebLayer* pageScaleLayerLayer, | 64 const blink::WebLayer* pageScaleLayerLayer, |
| 65 const blink::WebLayer* innerViewportScrollLayer, | 65 const blink::WebLayer* innerViewportScrollLayer, |
| 66 const blink::WebLayer* outerViewportScrollLayer) override; | 66 const blink::WebLayer* outerViewportScrollLayer) override; |
| 67 void clearViewportLayers() override; | 67 void clearViewportLayers() override; |
| 68 void registerSelection(const blink::WebSelection& selection) override; | 68 void registerSelection(const blink::WebSelection& selection) override; |
| 69 void clearSelection() override; | 69 void clearSelection() override; |
| 70 | 70 |
|
Charlie Reis
2016/01/28 23:44:00
nit: No blank line here, since it's still part of
| |
| 71 void setHaveWheelEventHandlers(bool have_event_handlers) override; | |
| 72 bool haveWheelEventHandlers() const override; | |
| 73 | |
| 71 // cc::LayerTreeHostClient implementation. | 74 // cc::LayerTreeHostClient implementation. |
| 72 void WillBeginMainFrame() override {} | 75 void WillBeginMainFrame() override {} |
| 73 void DidBeginMainFrame() override {} | 76 void DidBeginMainFrame() override {} |
| 74 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 77 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
| 75 void BeginMainFrameNotExpectedSoon() override {} | 78 void BeginMainFrameNotExpectedSoon() override {} |
| 76 void UpdateLayerTreeHost() override; | 79 void UpdateLayerTreeHost() override; |
| 77 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 80 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 78 const gfx::Vector2dF& outer_delta, | 81 const gfx::Vector2dF& outer_delta, |
| 79 const gfx::Vector2dF& elastic_overscroll_delta, | 82 const gfx::Vector2dF& elastic_overscroll_delta, |
| 80 float page_scale, | 83 float page_scale, |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 99 private: | 102 private: |
| 100 cc::TestTaskGraphRunner task_graph_runner_; | 103 cc::TestTaskGraphRunner task_graph_runner_; |
| 101 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 104 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 102 | 105 |
| 103 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 106 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 104 }; | 107 }; |
| 105 | 108 |
| 106 } // namespace content | 109 } // namespace content |
| 107 | 110 |
| 108 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 111 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |