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

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: Rebase Created 3 years, 3 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 29 matching lines...) Expand all
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "platform/scroll/ScrollTypes.h" 41 #include "platform/scroll/ScrollTypes.h"
42 #include "platform/text/TextDirection.h" 42 #include "platform/text/TextDirection.h"
43 #include "platform/wtf/Forward.h" 43 #include "platform/wtf/Forward.h"
44 #include "platform/wtf/Optional.h" 44 #include "platform/wtf/Optional.h"
45 #include "platform/wtf/Vector.h" 45 #include "platform/wtf/Vector.h"
46 #include "public/platform/BlameContext.h" 46 #include "public/platform/BlameContext.h"
47 #include "public/platform/WebDragOperation.h" 47 #include "public/platform/WebDragOperation.h"
48 #include "public/platform/WebEventListenerProperties.h" 48 #include "public/platform/WebEventListenerProperties.h"
49 #include "public/platform/WebFocusType.h" 49 #include "public/platform/WebFocusType.h"
50 #include "public/platform/WebScrollBoundaryBehavior.h"
50 51
51 // To avoid conflicts with the CreateWindow macro from the Windows SDK... 52 // To avoid conflicts with the CreateWindow macro from the Windows SDK...
52 #undef CreateWindow 53 #undef CreateWindow
53 54
54 namespace blink { 55 namespace blink {
55 56
56 class ColorChooser; 57 class ColorChooser;
57 class ColorChooserClient; 58 class ColorChooserClient;
58 class CompositorAnimationTimeline; 59 class CompositorAnimationTimeline;
59 class DateTimeChooser; 60 class DateTimeChooser;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 SandboxFlags) = 0; 136 SandboxFlags) = 0;
136 virtual void Show(NavigationPolicy) = 0; 137 virtual void Show(NavigationPolicy) = 0;
137 138
138 // All the parameters should be in viewport space. That is, if an event 139 // All the parameters should be in viewport space. That is, if an event
139 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the 140 // scrolls by 10 px, but due to a 2X page scale we apply a 5px scroll to the
140 // root frame, all of which is handled as overscroll, we should return 10px 141 // root frame, all of which is handled as overscroll, we should return 10px
141 // as the overscrollDelta. 142 // as the overscrollDelta.
142 virtual void DidOverscroll(const FloatSize& overscroll_delta, 143 virtual void DidOverscroll(const FloatSize& overscroll_delta,
143 const FloatSize& accumulated_overscroll, 144 const FloatSize& accumulated_overscroll,
144 const FloatPoint& position_in_viewport, 145 const FloatPoint& position_in_viewport,
145 const FloatSize& velocity_in_viewport) = 0; 146 const FloatSize& velocity_in_viewport,
147 const WebScrollBoundaryBehavior&) = 0;
146 148
147 virtual bool ShouldReportDetailedMessageForSource(LocalFrame&, 149 virtual bool ShouldReportDetailedMessageForSource(LocalFrame&,
148 const String& source) = 0; 150 const String& source) = 0;
149 virtual void AddMessageToConsole(LocalFrame*, 151 virtual void AddMessageToConsole(LocalFrame*,
150 MessageSource, 152 MessageSource,
151 MessageLevel, 153 MessageLevel,
152 const String& message, 154 const String& message,
153 unsigned line_number, 155 unsigned line_number,
154 const String& source_id, 156 const String& source_id,
155 const String& stack_trace) = 0; 157 const String& stack_trace) = 0;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {} 324 virtual void ShowVirtualKeyboardOnElementFocus(LocalFrame&) {}
323 325
324 virtual void RegisterViewportLayers() const {} 326 virtual void RegisterViewportLayers() const {}
325 327
326 virtual void ShowUnhandledTapUIIfNeeded(WebTappedInfo&) {} 328 virtual void ShowUnhandledTapUIIfNeeded(WebTappedInfo&) {}
327 329
328 virtual void OnMouseDown(Node&) {} 330 virtual void OnMouseDown(Node&) {}
329 331
330 virtual void DidUpdateBrowserControls() const {} 332 virtual void DidUpdateBrowserControls() const {}
331 333
334 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) {}
335
332 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 336 virtual void RegisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
333 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0; 337 virtual void UnregisterPopupOpeningObserver(PopupOpeningObserver*) = 0;
334 virtual void NotifyPopupOpeningObservers() const = 0; 338 virtual void NotifyPopupOpeningObservers() const = 0;
335 339
336 virtual FloatSize ElasticOverscroll() const { return FloatSize(); } 340 virtual FloatSize ElasticOverscroll() const { return FloatSize(); }
337 341
338 // Called when observed XHR, fetch, and other fetch request with non-GET 342 // Called when observed XHR, fetch, and other fetch request with non-GET
339 // method is initiated from javascript. At this time, it is not guaranteed 343 // method is initiated from javascript. At this time, it is not guaranteed
340 // that this is comprehensive. 344 // that this is comprehensive.
341 virtual void DidObserveNonGetFetchFromScript() const {} 345 virtual void DidObserveNonGetFetchFromScript() const {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 WeakMember<Node> last_mouse_over_node_; 387 WeakMember<Node> last_mouse_over_node_;
384 LayoutPoint last_tool_tip_point_; 388 LayoutPoint last_tool_tip_point_;
385 String last_tool_tip_text_; 389 String last_tool_tip_text_;
386 390
387 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 391 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
388 }; 392 };
389 393
390 } // namespace blink 394 } // namespace blink
391 395
392 #endif // ChromeClient_h 396 #endif // ChromeClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/EmptyClients.h ('k') | third_party/WebKit/Source/core/page/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698