| 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 19 matching lines...) Expand all Loading... |
| 30 public cc::LayerTreeHostSingleThreadClient { | 30 public cc::LayerTreeHostSingleThreadClient { |
| 31 public: | 31 public: |
| 32 WebLayerTreeViewImplForTesting(); | 32 WebLayerTreeViewImplForTesting(); |
| 33 ~WebLayerTreeViewImplForTesting() override; | 33 ~WebLayerTreeViewImplForTesting() override; |
| 34 | 34 |
| 35 void Initialize(); | 35 void Initialize(); |
| 36 | 36 |
| 37 // blink::WebLayerTreeView implementation. | 37 // blink::WebLayerTreeView implementation. |
| 38 void setRootLayer(const blink::WebLayer& layer) override; | 38 void setRootLayer(const blink::WebLayer& layer) override; |
| 39 void clearRootLayer() override; | 39 void clearRootLayer() override; |
| 40 void attachCompositorAnimationTimeline( | 40 void attachCompositorAnimationTimeline(cc::AnimationTimeline*) override; |
| 41 blink::WebCompositorAnimationTimeline*) override; | 41 void detachCompositorAnimationTimeline(cc::AnimationTimeline*) override; |
| 42 void detachCompositorAnimationTimeline( | |
| 43 blink::WebCompositorAnimationTimeline*) override; | |
| 44 virtual void setViewportSize(const blink::WebSize& unused_deprecated, | 42 virtual void setViewportSize(const blink::WebSize& unused_deprecated, |
| 45 const blink::WebSize& device_viewport_size); | 43 const blink::WebSize& device_viewport_size); |
| 46 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 44 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 47 void setDeviceScaleFactor(float scale_factor) override; | 45 void setDeviceScaleFactor(float scale_factor) override; |
| 48 void setBackgroundColor(blink::WebColor) override; | 46 void setBackgroundColor(blink::WebColor) override; |
| 49 void setHasTransparentBackground(bool transparent) override; | 47 void setHasTransparentBackground(bool transparent) override; |
| 50 void setVisible(bool visible) override; | 48 void setVisible(bool visible) override; |
| 51 void setPageScaleFactorAndLimits(float page_scale_factor, | 49 void setPageScaleFactorAndLimits(float page_scale_factor, |
| 52 float minimum, | 50 float minimum, |
| 53 float maximum) override; | 51 float maximum) override; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 private: | 99 private: |
| 102 cc::TestTaskGraphRunner task_graph_runner_; | 100 cc::TestTaskGraphRunner task_graph_runner_; |
| 103 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 101 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 104 | 102 |
| 105 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 103 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 106 }; | 104 }; |
| 107 | 105 |
| 108 } // namespace content | 106 } // namespace content |
| 109 | 107 |
| 110 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 108 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |