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

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

Issue 256303006: Make LayerScrollOffsetDelegate updates consistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: less jni Created 6 years, 7 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 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 14 matching lines...) Expand all
25 25
26 // Called to trigger view invalidations. 26 // Called to trigger view invalidations.
27 virtual void PostInvalidate() = 0; 27 virtual void PostInvalidate() = 0;
28 28
29 // Called to get view's absolute location on the screen. 29 // Called to get view's absolute location on the screen.
30 virtual gfx::Point GetLocationOnScreen() = 0; 30 virtual gfx::Point GetLocationOnScreen() = 0;
31 31
32 // Try to set the view's scroll offset to |new_value|. 32 // Try to set the view's scroll offset to |new_value|.
33 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0; 33 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0;
34 34
35 // Set the view's scroll offset cap to |new_value|.
36 virtual void SetMaxContainerViewScrollOffset(gfx::Vector2d new_value) = 0;
37
38 // Is a Android view system managed fling in progress? 35 // Is a Android view system managed fling in progress?
39 virtual bool IsFlingActive() const = 0; 36 virtual bool IsFlingActive() const = 0;
40 37
41 // Set the current page scale to |page_scale_factor| and page scale limits 38 // Sets the following:
39 // view's scroll offset cap to |max_scroll_offset|,
40 // current contents_size to |contents_size_dip|,
41 // the current page scale to |page_scale_factor| and page scale limits
42 // to |min_page_scale_factor|..|max_page_scale_factor|. 42 // to |min_page_scale_factor|..|max_page_scale_factor|.
43 virtual void SetPageScaleFactorAndLimits(float page_scale_factor, 43 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset,
44 float min_page_scale_factor, 44 gfx::SizeF contents_size_dip,
45 float max_page_scale_factor) = 0; 45 float page_scale_factor,
46 46 float min_page_scale_factor,
47 // Set the current contents_size to |contents_size_dip|. 47 float max_page_scale_factor) = 0;
48 virtual void SetContentsSize(gfx::SizeF contents_size_dip) = 0;
49 48
50 // Handle overscroll. 49 // Handle overscroll.
51 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0; 50 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0;
52 51
53 protected: 52 protected:
54 virtual ~BrowserViewRendererClient() {} 53 virtual ~BrowserViewRendererClient() {}
55 }; 54 };
56 55
57 } // namespace android_webview 56 } // namespace android_webview
58 57
59 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 58 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698