| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void setPageScaleFactorAndLimits(float page_scale_factor, | 49 void setPageScaleFactorAndLimits(float page_scale_factor, |
| 50 float minimum, | 50 float minimum, |
| 51 float maximum) override; | 51 float maximum) override; |
| 52 void startPageScaleAnimation(const blink::WebPoint& destination, | 52 void startPageScaleAnimation(const blink::WebPoint& destination, |
| 53 bool use_anchor, | 53 bool use_anchor, |
| 54 float new_page_scale, | 54 float new_page_scale, |
| 55 double duration_sec) override; | 55 double duration_sec) override; |
| 56 void setNeedsAnimate() override; | 56 void setNeedsAnimate() override; |
| 57 void didStopFlinging() override; | 57 void didStopFlinging() override; |
| 58 void setDeferCommits(bool defer_commits) override; | 58 void setDeferCommits(bool defer_commits) override; |
| 59 void registerForAnimations(blink::WebLayer* layer) override; | |
| 60 void registerViewportLayers( | 59 void registerViewportLayers( |
| 61 const blink::WebLayer* overscrollElasticityLayer, | 60 const blink::WebLayer* overscrollElasticityLayer, |
| 62 const blink::WebLayer* pageScaleLayerLayer, | 61 const blink::WebLayer* pageScaleLayerLayer, |
| 63 const blink::WebLayer* innerViewportScrollLayer, | 62 const blink::WebLayer* innerViewportScrollLayer, |
| 64 const blink::WebLayer* outerViewportScrollLayer) override; | 63 const blink::WebLayer* outerViewportScrollLayer) override; |
| 65 void clearViewportLayers() override; | 64 void clearViewportLayers() override; |
| 66 void registerSelection(const blink::WebSelection& selection) override; | 65 void registerSelection(const blink::WebSelection& selection) override; |
| 67 void clearSelection() override; | 66 void clearSelection() override; |
| 68 void setEventListenerProperties( | 67 void setEventListenerProperties( |
| 69 blink::WebEventListenerClass event_class, | 68 blink::WebEventListenerClass event_class, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 private: | 103 private: |
| 105 cc::TestTaskGraphRunner task_graph_runner_; | 104 cc::TestTaskGraphRunner task_graph_runner_; |
| 106 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 105 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 107 | 106 |
| 108 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 107 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace content | 110 } // namespace content |
| 112 | 111 |
| 113 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 112 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |