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

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

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r248052. Created 6 years, 10 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 | Annotate | Revision Log
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 composite(); 53 virtual void composite();
54 virtual void didStopFlinging(); 54 virtual void didStopFlinging();
55 virtual bool compositeAndReadback(void* pixels, const blink::WebRect& rect); 55 virtual bool compositeAndReadback(void* pixels, const blink::WebRect& rect);
56 virtual void finishAllRendering(); 56 virtual void finishAllRendering();
57 virtual void setDeferCommits(bool defer_commits); 57 virtual void setDeferCommits(bool defer_commits);
58 virtual void renderingStats( 58 virtual void renderingStats(
59 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references) 59 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references)
60 virtual void registerViewportLayers(
61 const blink::WebLayer* pageScaleLayerLayer,
62 const blink::WebLayer* innerViewportScrollLayer,
63 const blink::WebLayer* outerViewportScrollLayer) OVERRIDE;
64 virtual void clearViewportLayers() OVERRIDE;
60 65
61 // cc::LayerTreeHostClient implementation. 66 // cc::LayerTreeHostClient implementation.
62 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 67 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
63 virtual void DidBeginMainFrame() OVERRIDE {} 68 virtual void DidBeginMainFrame() OVERRIDE {}
64 virtual void Animate(double frame_begin_time) OVERRIDE {} 69 virtual void Animate(double frame_begin_time) OVERRIDE {}
65 virtual void Layout() OVERRIDE; 70 virtual void Layout() OVERRIDE;
66 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) 71 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale)
67 OVERRIDE; 72 OVERRIDE;
68 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 73 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
69 OVERRIDE; 74 OVERRIDE;
(...skipping 13 matching lines...) Expand all
83 88
84 private: 89 private:
85 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 90 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
86 91
87 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); 92 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting);
88 }; 93 };
89 94
90 } // namespace webkit 95 } // namespace webkit
91 96
92 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 97 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/test/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698