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

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: 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) 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 during WebWidget::HandleInputEvent for a TouchStart event to inform 141 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform
141 // the embedder of the touch actions that are permitted for this touch. 142 // the embedder of the touch actions that are permitted for this touch.
142 virtual void SetTouchAction(WebTouchAction touch_action) {} 143 virtual void SetTouchAction(WebTouchAction touch_action) {}
143 144
144 // Request the browser to show virtual keyboard for current input type. 145 // Request the browser to show virtual keyboard for current input type.
145 virtual void ShowVirtualKeyboardOnElementFocus() {} 146 virtual void ShowVirtualKeyboardOnElementFocus() {}
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 virtual void StartDragging(WebReferrerPolicy, 180 virtual void StartDragging(WebReferrerPolicy,
180 const WebDragData&, 181 const WebDragData&,
181 WebDragOperationsMask, 182 WebDragOperationsMask,
182 const WebImage& drag_image, 183 const WebImage& drag_image,
183 const WebPoint& drag_image_offset) {} 184 const WebPoint& drag_image_offset) {}
184 }; 185 };
185 186
186 } // namespace blink 187 } // namespace blink
187 188
188 #endif 189 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698