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/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "cc/trees/layer_tree_host_client.h" | 10 #include "cc/trees/layer_tree_host_client.h" |
10 #include "cc/trees/layer_tree_host_single_thread_client.h" | 11 #include "cc/trees/layer_tree_host_single_thread_client.h" |
11 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" | 12 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 class LayerTreeHost; | 15 class LayerTreeHost; |
15 } | 16 } |
16 | 17 |
17 namespace blink { class WebLayer; } | 18 namespace blink { class WebLayer; } |
(...skipping 23 matching lines...) Expand all Loading... |
41 virtual void setBackgroundColor(blink::WebColor); | 42 virtual void setBackgroundColor(blink::WebColor); |
42 virtual void setHasTransparentBackground(bool transparent); | 43 virtual void setHasTransparentBackground(bool transparent); |
43 virtual void setVisible(bool visible); | 44 virtual void setVisible(bool visible); |
44 virtual void setPageScaleFactorAndLimits(float page_scale_factor, | 45 virtual void setPageScaleFactorAndLimits(float page_scale_factor, |
45 float minimum, | 46 float minimum, |
46 float maximum); | 47 float maximum); |
47 virtual void startPageScaleAnimation(const blink::WebPoint& destination, | 48 virtual void startPageScaleAnimation(const blink::WebPoint& destination, |
48 bool use_anchor, | 49 bool use_anchor, |
49 float new_page_scale, | 50 float new_page_scale, |
50 double duration_sec); | 51 double duration_sec); |
51 virtual void setNeedsAnimate(); | 52 virtual void setNeedsAnimate() { setNeedsUpdateLayers(); } // Renamed. Staged
for removal. |
| 53 virtual void setNeedsUpdateLayers(); |
52 virtual void setNeedsRedraw(); | 54 virtual void setNeedsRedraw(); |
53 virtual bool commitRequested() const; | 55 virtual bool commitRequested() const { NOTREACHED(); return false; } // Unused
. Staged for removal. |
54 virtual void composite(); | 56 virtual void composite(); |
55 virtual void didStopFlinging(); | 57 virtual void didStopFlinging(); |
56 virtual bool compositeAndReadback(void* pixels, const blink::WebRect& rect); | 58 virtual bool compositeAndReadback(void* pixels, const blink::WebRect& rect); |
57 virtual void finishAllRendering(); | 59 virtual void finishAllRendering(); |
58 virtual void setDeferCommits(bool defer_commits); | 60 virtual void setDeferCommits(bool defer_commits); |
59 virtual void renderingStats( | 61 virtual void renderingStats( |
60 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references) | 62 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references) |
61 | 63 |
62 // cc::LayerTreeHostClient implementation. | 64 // cc::LayerTreeHostClient implementation. |
63 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 65 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
(...skipping 19 matching lines...) Expand all Loading... |
83 | 85 |
84 private: | 86 private: |
85 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 87 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
86 | 88 |
87 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 89 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
88 }; | 90 }; |
89 | 91 |
90 } // namespace webkit | 92 } // namespace webkit |
91 | 93 |
92 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 94 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |