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

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

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: Unfortunately doesn't work 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 136
137 // Called to update if touch events should be sent. 137 // Called to update if touch events should be sent.
138 virtual void HasTouchEventHandlers(bool) {} 138 virtual void HasTouchEventHandlers(bool) {}
139 139
140 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform 140 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform
141 // the embedder of the touch actions that are permitted for this touch. 141 // the embedder of the touch actions that are permitted for this touch.
142 virtual void SetTouchAction(WebTouchAction touch_action) {} 142 virtual void SetTouchAction(blink::WebTouchAction touch_action) {}
xidachen 2017/05/05 20:32:45 So I tried this, and unfortunately it doesn't work
143 143
144 // Request the browser to show virtual keyboard for current input type. 144 // Request the browser to show virtual keyboard for current input type.
145 virtual void ShowVirtualKeyboardOnElementFocus() {} 145 virtual void ShowVirtualKeyboardOnElementFocus() {}
146 146
147 // Request that the browser show a UI for an unhandled tap, if needed. 147 // Request that the browser show a UI for an unhandled tap, if needed.
148 // Invoked during the handling of a GestureTap input event whenever the 148 // Invoked during the handling of a GestureTap input event whenever the
149 // event is not consumed. 149 // event is not consumed.
150 // |tappedPosition| is the point where the mouseDown occurred in client 150 // |tappedPosition| is the point where the mouseDown occurred in client
151 // coordinates. 151 // coordinates.
152 // |tappedNode| is the node that the mouseDown event hit, provided so the 152 // |tappedNode| is the node that the mouseDown event hit, provided so the
(...skipping 26 matching lines...) Expand all
179 virtual void StartDragging(WebReferrerPolicy, 179 virtual void StartDragging(WebReferrerPolicy,
180 const WebDragData&, 180 const WebDragData&,
181 WebDragOperationsMask, 181 WebDragOperationsMask,
182 const WebImage& drag_image, 182 const WebImage& drag_image,
183 const WebPoint& drag_image_offset) {} 183 const WebPoint& drag_image_offset) {}
184 }; 184 };
185 185
186 } // namespace blink 186 } // namespace blink
187 187
188 #endif 188 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698