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

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

Powered by Google App Engine
This is Rietveld 408576698