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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Fixed the comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/ChromeClient.h
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h
index 9ef95882db8a878371a98a68f9450c82206fd382..154afdbdf235b10b84dc0a113e5a80fa36543dc1 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -45,6 +45,7 @@
#include "public/platform/WebDragOperation.h"
#include "public/platform/WebEventListenerProperties.h"
#include "public/platform/WebFocusType.h"
+#include "public/platform/WebScrollBoundaryBehavior.h"
// To avoid conflicts with the CreateWindow macro from the Windows SDK...
#undef CreateWindow
@@ -143,7 +144,8 @@ class CORE_EXPORT ChromeClient : public PlatformChromeClient {
virtual void DidOverscroll(const FloatSize& overscroll_delta,
const FloatSize& accumulated_overscroll,
const FloatPoint& position_in_viewport,
- const FloatSize& velocity_in_viewport) = 0;
+ const FloatSize& velocity_in_viewport,
+ const WebScrollBoundaryBehavior&) = 0;
virtual void SetToolbarsVisible(bool) = 0;
virtual bool ToolbarsVisible() = 0;
@@ -333,6 +335,8 @@ class CORE_EXPORT ChromeClient : public PlatformChromeClient {
virtual void DidUpdateBrowserControls() const {}
+ virtual void SetScrollBoundaryBehavior(WebScrollBoundaryBehavior) const {}
+
virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
virtual void NotifyPopupOpeningObservers() const = 0;

Powered by Google App Engine
This is Rietveld 408576698