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

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

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: needs more 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
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebWidgetClient_h 31 #ifndef WebWidgetClient_h
32 #define WebWidgetClient_h 32 #define WebWidgetClient_h
33 33
34 #include "WebNavigationPolicy.h" 34 #include "WebNavigationPolicy.h"
35 #if BLINK_IMPLEMENTATION
36 #include "platform/graphics/TouchAction.h"
37 #endif
35 #include "public/platform/WebCommon.h" 38 #include "public/platform/WebCommon.h"
36 #include "public/platform/WebDragOperation.h" 39 #include "public/platform/WebDragOperation.h"
37 #include "public/platform/WebLayerTreeView.h" 40 #include "public/platform/WebLayerTreeView.h"
38 #include "public/platform/WebPoint.h" 41 #include "public/platform/WebPoint.h"
39 #include "public/platform/WebRect.h" 42 #include "public/platform/WebRect.h"
40 #include "public/platform/WebReferrerPolicy.h" 43 #include "public/platform/WebReferrerPolicy.h"
41 #include "public/platform/WebScreenInfo.h" 44 #include "public/platform/WebScreenInfo.h"
42 #include "public/web/WebMeaningfulLayout.h" 45 #include "public/web/WebMeaningfulLayout.h"
43 #include "public/web/WebTextDirection.h" 46 #include "public/web/WebTextDirection.h"
44 #include "public/web/WebTouchAction.h"
45 47
46 namespace blink { 48 namespace blink {
47 49
48 class WebDragData; 50 class WebDragData;
49 class WebGestureEvent; 51 class WebGestureEvent;
50 class WebImage; 52 class WebImage;
51 class WebNode; 53 class WebNode;
52 class WebString; 54 class WebString;
53 class WebWidget; 55 class WebWidget;
54 struct WebCursorInfo; 56 struct WebCursorInfo;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void DidOverscroll(const WebFloatSize& overscroll_delta, 134 virtual void DidOverscroll(const WebFloatSize& overscroll_delta,
133 const WebFloatSize& accumulated_overscroll, 135 const WebFloatSize& accumulated_overscroll,
134 const WebFloatPoint& position_in_viewport, 136 const WebFloatPoint& position_in_viewport,
135 const WebFloatSize& velocity_in_viewport) {} 137 const WebFloatSize& velocity_in_viewport) {}
136 138
137 // Called to update if touch events should be sent. 139 // Called to update if touch events should be sent.
138 virtual void HasTouchEventHandlers(bool) {} 140 virtual void HasTouchEventHandlers(bool) {}
139 141
140 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform 142 // Called during WebWidget::HandleInputEvent for a TouchStart event to inform
141 // the embedder of the touch actions that are permitted for this touch. 143 // the embedder of the touch actions that are permitted for this touch.
142 virtual void SetTouchAction(WebTouchAction touch_action) {} 144 #if BLINK_IMPLEMENTATION
145 virtual void SetTouchAction(blink::TouchAction touch_action) {}
xidachen 2017/05/05 15:17:52 wkorman@, pdr@: I am getting close. Just one last
wkorman 2017/05/05 20:25:47 I think I agree with you, with my (our?) newfound
146 #endif
143 147
144 // Request the browser to show virtual keyboard for current input type. 148 // Request the browser to show virtual keyboard for current input type.
145 virtual void ShowVirtualKeyboardOnElementFocus() {} 149 virtual void ShowVirtualKeyboardOnElementFocus() {}
146 150
147 // Request that the browser show a UI for an unhandled tap, if needed. 151 // 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 152 // Invoked during the handling of a GestureTap input event whenever the
149 // event is not consumed. 153 // event is not consumed.
150 // |tappedPosition| is the point where the mouseDown occurred in client 154 // |tappedPosition| is the point where the mouseDown occurred in client
151 // coordinates. 155 // coordinates.
152 // |tappedNode| is the node that the mouseDown event hit, provided so the 156 // |tappedNode| is the node that the mouseDown event hit, provided so the
(...skipping 26 matching lines...) Expand all
179 virtual void StartDragging(WebReferrerPolicy, 183 virtual void StartDragging(WebReferrerPolicy,
180 const WebDragData&, 184 const WebDragData&,
181 WebDragOperationsMask, 185 WebDragOperationsMask,
182 const WebImage& drag_image, 186 const WebImage& drag_image,
183 const WebPoint& drag_image_offset) {} 187 const WebPoint& drag_image_offset) {}
184 }; 188 };
185 189
186 } // namespace blink 190 } // namespace blink
187 191
188 #endif 192 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698