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

Side by Side Diff: third_party/WebKit/public/web/WebWidgetClient.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test Created 3 years, 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Called when a gesture event is handled. 126 // Called when a gesture event is handled.
127 virtual void DidHandleGestureEvent(const WebGestureEvent& event, 127 virtual void DidHandleGestureEvent(const WebGestureEvent& event,
128 bool event_cancelled) {} 128 bool event_cancelled) {}
129 129
130 // Called when overscrolled on main thread. All parameters are in 130 // Called when overscrolled on main thread. All parameters are in
131 // viewport-space. 131 // viewport-space.
132 virtual void DidOverscroll(const WebFloatSize& overscroll_delta, 132 virtual void DidOverscroll(const WebFloatSize& overscroll_delta,
133 const WebFloatSize& accumulated_overscroll, 133 const WebFloatSize& accumulated_overscroll,
134 const WebFloatPoint& position_in_viewport, 134 const WebFloatPoint& position_in_viewport,
135 const WebFloatSize& velocity_in_viewport) {} 135 const WebFloatSize& velocity_in_viewport,
136 const WebScrollBoundaryBehavior& behavior) {}
136 137
137 // Called to update if touch events should be sent. 138 // Called to update if touch events should be sent.
138 virtual void HasTouchEventHandlers(bool) {} 139 virtual void HasTouchEventHandlers(bool) {}
139 140
140 // Called to update whether low latency input mode is enabled or not. 141 // Called to update whether low latency input mode is enabled or not.
141 virtual void SetNeedsLowLatencyInput(bool) {} 142 virtual void SetNeedsLowLatencyInput(bool) {}
142 143
143 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform 144 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform
144 // the embedder of the touch actions that are permitted for this touch. 145 // the embedder of the touch actions that are permitted for this touch.
145 virtual void SetTouchAction(WebTouchAction touch_action) {} 146 virtual void SetTouchAction(WebTouchAction touch_action) {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual void StartDragging(WebReferrerPolicy, 183 virtual void StartDragging(WebReferrerPolicy,
183 const WebDragData&, 184 const WebDragData&,
184 WebDragOperationsMask, 185 WebDragOperationsMask,
185 const WebImage& drag_image, 186 const WebImage& drag_image,
186 const WebPoint& drag_image_offset) {} 187 const WebPoint& drag_image_offset) {}
187 }; 188 };
188 189
189 } // namespace blink 190 } // namespace blink
190 191
191 #endif 192 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698