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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 27 matching lines...) Expand all
38 #include "platform/graphics/TouchAction.h" 38 #include "platform/graphics/TouchAction.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "platform/scroll/ScrollTypes.h" 40 #include "platform/scroll/ScrollTypes.h"
41 #include "platform/wtf/Forward.h" 41 #include "platform/wtf/Forward.h"
42 #include "platform/wtf/Optional.h" 42 #include "platform/wtf/Optional.h"
43 #include "platform/wtf/Vector.h" 43 #include "platform/wtf/Vector.h"
44 #include "public/platform/BlameContext.h" 44 #include "public/platform/BlameContext.h"
45 #include "public/platform/WebDragOperation.h" 45 #include "public/platform/WebDragOperation.h"
46 #include "public/platform/WebEventListenerProperties.h" 46 #include "public/platform/WebEventListenerProperties.h"
47 #include "public/platform/WebFocusType.h" 47 #include "public/platform/WebFocusType.h"
48 #include "public/platform/WebScrollBoundaryBehavior.h"
48 49
49 // To avoid conflicts with the CreateWindow macro from the Windows SDK... 50 // To avoid conflicts with the CreateWindow macro from the Windows SDK...
50 #undef CreateWindow 51 #undef CreateWindow
51 52
52 namespace blink { 53 namespace blink {
53 54
54 class AXObjectImpl; 55 class AXObjectImpl;
55 class ColorChooser; 56 class ColorChooser;
56 class ColorChooserClient; 57 class ColorChooserClient;
57 class CompositorWorkerProxyClient; 58 class CompositorWorkerProxyClient;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 137
137 void SetWindowFeatures(const WindowFeatures&); 138 void SetWindowFeatures(const WindowFeatures&);
138 139
139 // All the parameters should be in viewport space. That is, if an event 140 // All the parameters should be in viewport space. That is, if an event
140 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the 141 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the
141 // root frame, all of which is handled as overscroll, we should return 10px 142 // root frame, all of which is handled as overscroll, we should return 10px
142 // as the overscrollDelta. 143 // as the overscrollDelta.
143 virtual void DidOverscroll(const FloatSize& overscroll_delta, 144 virtual void DidOverscroll(const FloatSize& overscroll_delta,
144 const FloatSize& accumulated_overscroll, 145 const FloatSize& accumulated_overscroll,
145 const FloatPoint& position_in_viewport, 146 const FloatPoint& position_in_viewport,
146 const FloatSize& velocity_in_viewport) = 0; 147 const FloatSize& velocity_in_viewport,
148 const WebScrollBoundaryBehavior&) = 0;
147 149
148 virtual void SetToolbarsVisible(bool) = 0; 150 virtual void SetToolbarsVisible(bool) = 0;
149 virtual bool ToolbarsVisible() = 0; 151 virtual bool ToolbarsVisible() = 0;
150 152
151 virtual void SetStatusbarVisible(bool) = 0; 153 virtual void SetStatusbarVisible(bool) = 0;
152 virtual bool StatusbarVisible() = 0; 154 virtual bool StatusbarVisible() = 0;
153 155
154 virtual void SetScrollbarsVisible(bool) = 0; 156 virtual void SetScrollbarsVisible(bool) = 0;
155 virtual bool ScrollbarsVisible() = 0; 157 virtual bool ScrollbarsVisible() = 0;
156 158
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {} 328 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {}
327 329
328 virtual void RegisterViewportLayers() const {} 330 virtual void RegisterViewportLayers() const {}
329 331
330 virtual void ShowUnhandledTapUIIfNeeded(IntPoint, Node*, bool) {} 332 virtual void ShowUnhandledTapUIIfNeeded(IntPoint, Node*, bool) {}
331 333
332 virtual void OnMouseDown(Node&) {} 334 virtual void OnMouseDown(Node&) {}
333 335
334 virtual void DidUpdateBrowserControls() const {} 336 virtual void DidUpdateBrowserControls() const {}
335 337
338 virtual void SetScrollBoundaryBehavior(WebScrollBoundaryBehavior) const {}
339
336 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 340 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
337 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 341 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
338 virtual void NotifyPopupOpeningObservers() const = 0; 342 virtual void NotifyPopupOpeningObservers() const = 0;
339 343
340 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient( 344 virtual CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient(
341 LocalFrame*) = 0; 345 LocalFrame*) = 0;
342 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient( 346 virtual AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient(
343 LocalFrame*) = 0; 347 LocalFrame*) = 0;
344 348
345 virtual FloatSize ElasticOverscroll() const { return FloatSize(); } 349 virtual FloatSize ElasticOverscroll() const { return FloatSize(); }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 WeakMember<Node> last_mouse_over_node_; 398 WeakMember<Node> last_mouse_over_node_;
395 LayoutPoint last_tool_tip_point_; 399 LayoutPoint last_tool_tip_point_;
396 String last_tool_tip_text_; 400 String last_tool_tip_text_;
397 401
398 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 402 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
399 }; 403 };
400 404
401 } // namespace blink 405 } // namespace blink
402 406
403 #endif // ChromeClient_h 407 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698