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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 float maximum); | 46 float maximum); |
47 virtual void startPageScaleAnimation(const blink::WebPoint& destination, | 47 virtual void startPageScaleAnimation(const blink::WebPoint& destination, |
48 bool use_anchor, | 48 bool use_anchor, |
49 float new_page_scale, | 49 float new_page_scale, |
50 double duration_sec); | 50 double duration_sec); |
51 virtual void setNeedsAnimate(); | 51 virtual void setNeedsAnimate(); |
52 virtual bool commitRequested() const; | 52 virtual bool commitRequested() const; |
53 virtual void didStopFlinging(); | 53 virtual void didStopFlinging(); |
54 virtual void finishAllRendering(); | 54 virtual void finishAllRendering(); |
55 virtual void setDeferCommits(bool defer_commits); | 55 virtual void setDeferCommits(bool defer_commits); |
| 56 virtual void registerForAnimations(blink::WebLayer* layer); |
56 virtual void registerViewportLayers( | 57 virtual void registerViewportLayers( |
57 const blink::WebLayer* overscrollElasticityLayer, | 58 const blink::WebLayer* overscrollElasticityLayer, |
58 const blink::WebLayer* pageScaleLayerLayer, | 59 const blink::WebLayer* pageScaleLayerLayer, |
59 const blink::WebLayer* innerViewportScrollLayer, | 60 const blink::WebLayer* innerViewportScrollLayer, |
60 const blink::WebLayer* outerViewportScrollLayer) override; | 61 const blink::WebLayer* outerViewportScrollLayer) override; |
61 virtual void clearViewportLayers() override; | 62 virtual void clearViewportLayers() override; |
62 virtual void registerSelection( | 63 virtual void registerSelection( |
63 const blink::WebSelectionBound& start, | 64 const blink::WebSelectionBound& start, |
64 const blink::WebSelectionBound& end) override; | 65 const blink::WebSelectionBound& end) override; |
65 virtual void clearSelection() override; | 66 virtual void clearSelection() override; |
(...skipping 27 matching lines...) Expand all Loading... |
93 | 94 |
94 private: | 95 private: |
95 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 96 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 98 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
98 }; | 99 }; |
99 | 100 |
100 } // namespace content | 101 } // namespace content |
101 | 102 |
102 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 103 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |