Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defer selection updates until after compositor scheduling Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void setNeedsAnimate(); 52 virtual void setNeedsAnimate();
53 virtual bool commitRequested() const; 53 virtual bool commitRequested() const;
54 virtual void didStopFlinging(); 54 virtual void didStopFlinging();
55 virtual void finishAllRendering(); 55 virtual void finishAllRendering();
56 virtual void setDeferCommits(bool defer_commits); 56 virtual void setDeferCommits(bool defer_commits);
57 virtual void registerViewportLayers( 57 virtual void registerViewportLayers(
58 const blink::WebLayer* pageScaleLayerLayer, 58 const blink::WebLayer* pageScaleLayerLayer,
59 const blink::WebLayer* innerViewportScrollLayer, 59 const blink::WebLayer* innerViewportScrollLayer,
60 const blink::WebLayer* outerViewportScrollLayer) OVERRIDE; 60 const blink::WebLayer* outerViewportScrollLayer) OVERRIDE;
61 virtual void clearViewportLayers() OVERRIDE; 61 virtual void clearViewportLayers() OVERRIDE;
62 virtual void registerSelection(const blink::WebSelection& selection) OVERRIDE;
63 virtual void clearSelection() OVERRIDE;
62 64
63 // cc::LayerTreeHostClient implementation. 65 // cc::LayerTreeHostClient implementation.
64 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 66 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
65 virtual void DidBeginMainFrame() OVERRIDE {} 67 virtual void DidBeginMainFrame() OVERRIDE {}
66 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {} 68 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {}
67 virtual void Layout() OVERRIDE; 69 virtual void Layout() OVERRIDE;
68 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, 70 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
69 float page_scale) OVERRIDE; 71 float page_scale) OVERRIDE;
70 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 72 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
71 OVERRIDE; 73 OVERRIDE;
(...skipping 11 matching lines...) Expand all
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 content 92 } // namespace content
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698