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

Side by Side Diff: android_webview/browser/browser_view_renderer_client.h

Issue 1417893006: sync compositor: pass simple gfx types by const ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "ui/gfx/geometry/point.h" 9 #include "ui/gfx/geometry/point.h"
10 #include "ui/gfx/geometry/size_f.h" 10 #include "ui/gfx/geometry/size_f.h"
(...skipping 20 matching lines...) Expand all
31 virtual void PostInvalidate() = 0; 31 virtual void PostInvalidate() = 0;
32 32
33 // Call postInvalidateOnAnimation for invalidations. This is only used to 33 // Call postInvalidateOnAnimation for invalidations. This is only used to
34 // synchronize draw functor destruction. 34 // synchronize draw functor destruction.
35 virtual void DetachFunctorFromView() = 0; 35 virtual void DetachFunctorFromView() = 0;
36 36
37 // Called to get view's absolute location on the screen. 37 // Called to get view's absolute location on the screen.
38 virtual gfx::Point GetLocationOnScreen() = 0; 38 virtual gfx::Point GetLocationOnScreen() = 0;
39 39
40 // Try to set the view's scroll offset to |new_value|. 40 // Try to set the view's scroll offset to |new_value|.
41 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0; 41 virtual void ScrollContainerViewTo(const gfx::Vector2d& new_value) = 0;
42 42
43 // Sets the following: 43 // Sets the following:
44 // view's scroll offset cap to |max_scroll_offset|, 44 // view's scroll offset cap to |max_scroll_offset|,
45 // current contents_size to |contents_size_dip|, 45 // current contents_size to |contents_size_dip|,
46 // the current page scale to |page_scale_factor| and page scale limits 46 // the current page scale to |page_scale_factor| and page scale limits
47 // to |min_page_scale_factor|..|max_page_scale_factor|. 47 // to |min_page_scale_factor|..|max_page_scale_factor|.
48 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset, 48 virtual void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
49 gfx::SizeF contents_size_dip, 49 const gfx::SizeF& contents_size_dip,
50 float page_scale_factor, 50 float page_scale_factor,
51 float min_page_scale_factor, 51 float min_page_scale_factor,
52 float max_page_scale_factor) = 0; 52 float max_page_scale_factor) = 0;
53 53
54 // Handle overscroll. 54 // Handle overscroll.
55 virtual void DidOverscroll(gfx::Vector2d overscroll_delta, 55 virtual void DidOverscroll(const gfx::Vector2d& overscroll_delta,
56 gfx::Vector2dF overscroll_velocity) = 0; 56 const gfx::Vector2dF& overscroll_velocity) = 0;
57 57
58 // Visible for testing 58 // Visible for testing
59 // Called when the parent draw constraints in browser view renderer gets 59 // Called when the parent draw constraints in browser view renderer gets
60 // updated. 60 // updated.
61 virtual void ParentDrawConstraintsUpdated( 61 virtual void ParentDrawConstraintsUpdated(
62 const ParentCompositorDrawConstraints& draw_constraints) = 0; 62 const ParentCompositorDrawConstraints& draw_constraints) = 0;
63 63
64 protected: 64 protected:
65 virtual ~BrowserViewRendererClient() {} 65 virtual ~BrowserViewRendererClient() {}
66 }; 66 };
67 67
68 } // namespace android_webview 68 } // namespace android_webview
69 69
70 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 70 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer.cc ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698