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 11 matching lines...) Expand all Loading... |
22 : public blink::WebLayerTreeView, | 22 : public blink::WebLayerTreeView, |
23 public cc::LayerTreeHostClient, | 23 public cc::LayerTreeHostClient, |
24 public cc::LayerTreeHostSingleThreadClient { | 24 public cc::LayerTreeHostSingleThreadClient { |
25 public: | 25 public: |
26 WebLayerTreeViewImplForTesting(); | 26 WebLayerTreeViewImplForTesting(); |
27 virtual ~WebLayerTreeViewImplForTesting(); | 27 virtual ~WebLayerTreeViewImplForTesting(); |
28 | 28 |
29 void Initialize(); | 29 void Initialize(); |
30 | 30 |
31 // blink::WebLayerTreeView implementation. | 31 // blink::WebLayerTreeView implementation. |
32 virtual void setSurfaceReady(); | |
33 virtual void setRootLayer(const blink::WebLayer& layer); | 32 virtual void setRootLayer(const blink::WebLayer& layer); |
34 virtual void clearRootLayer(); | 33 virtual void clearRootLayer(); |
35 virtual void setViewportSize(const blink::WebSize& unused_deprecated, | 34 virtual void setViewportSize(const blink::WebSize& unused_deprecated, |
36 const blink::WebSize& device_viewport_size); | 35 const blink::WebSize& device_viewport_size); |
37 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 36 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
38 virtual blink::WebSize layoutViewportSize() const; | 37 virtual blink::WebSize layoutViewportSize() const; |
39 virtual blink::WebSize deviceViewportSize() const; | 38 virtual blink::WebSize deviceViewportSize() const; |
40 virtual void setDeviceScaleFactor(float scale_factor); | 39 virtual void setDeviceScaleFactor(float scale_factor); |
41 virtual float deviceScaleFactor() const; | 40 virtual float deviceScaleFactor() const; |
42 virtual void setBackgroundColor(blink::WebColor); | 41 virtual void setBackgroundColor(blink::WebColor); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 91 |
93 private: | 92 private: |
94 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 93 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
95 | 94 |
96 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 95 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
97 }; | 96 }; |
98 | 97 |
99 } // namespace content | 98 } // namespace content |
100 | 99 |
101 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 100 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |