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

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 1800143002: Notify Blink about start of gesture scroll through a queued event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 case WebInputEvent::GestureDoubleTap: 162 case WebInputEvent::GestureDoubleTap:
163 case WebInputEvent::GestureTwoFingerTap: 163 case WebInputEvent::GestureTwoFingerTap:
164 case WebInputEvent::GestureLongPress: 164 case WebInputEvent::GestureLongPress:
165 case WebInputEvent::GestureLongTap: 165 case WebInputEvent::GestureLongTap:
166 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev ent)); 166 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev ent));
167 167
168 case WebInputEvent::TouchStart: 168 case WebInputEvent::TouchStart:
169 case WebInputEvent::TouchMove: 169 case WebInputEvent::TouchMove:
170 case WebInputEvent::TouchEnd: 170 case WebInputEvent::TouchEnd:
171 case WebInputEvent::TouchCancel: 171 case WebInputEvent::TouchCancel:
172 case WebInputEvent::TouchScrollStarted:
172 if (!root || !root->view()) 173 if (!root || !root->view())
173 return WebInputEventResult::NotHandled; 174 return WebInputEventResult::NotHandled;
174 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&> (event)); 175 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&> (event));
175 case WebInputEvent::GesturePinchBegin: 176 case WebInputEvent::GesturePinchBegin:
176 case WebInputEvent::GesturePinchEnd: 177 case WebInputEvent::GesturePinchEnd:
177 case WebInputEvent::GesturePinchUpdate: 178 case WebInputEvent::GesturePinchUpdate:
178 // Touchscreen pinch events are currently not handled in main thread. On ce they are, 179 // Touchscreen pinch events are currently not handled in main thread. On ce they are,
179 // these should be passed to |handleGestureEvent| similar to gesture scr oll events. 180 // these should be passed to |handleGestureEvent| similar to gesture scr oll events.
180 return WebInputEventResult::NotHandled; 181 return WebInputEventResult::NotHandled;
181 default: 182 default:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 WEBINPUT_EVENT_CASE(GestureTwoFingerTap) 247 WEBINPUT_EVENT_CASE(GestureTwoFingerTap)
247 WEBINPUT_EVENT_CASE(GestureLongPress) 248 WEBINPUT_EVENT_CASE(GestureLongPress)
248 WEBINPUT_EVENT_CASE(GestureLongTap) 249 WEBINPUT_EVENT_CASE(GestureLongTap)
249 WEBINPUT_EVENT_CASE(GesturePinchBegin) 250 WEBINPUT_EVENT_CASE(GesturePinchBegin)
250 WEBINPUT_EVENT_CASE(GesturePinchEnd) 251 WEBINPUT_EVENT_CASE(GesturePinchEnd)
251 WEBINPUT_EVENT_CASE(GesturePinchUpdate) 252 WEBINPUT_EVENT_CASE(GesturePinchUpdate)
252 WEBINPUT_EVENT_CASE(TouchStart) 253 WEBINPUT_EVENT_CASE(TouchStart)
253 WEBINPUT_EVENT_CASE(TouchMove) 254 WEBINPUT_EVENT_CASE(TouchMove)
254 WEBINPUT_EVENT_CASE(TouchEnd) 255 WEBINPUT_EVENT_CASE(TouchEnd)
255 WEBINPUT_EVENT_CASE(TouchCancel) 256 WEBINPUT_EVENT_CASE(TouchCancel)
257 WEBINPUT_EVENT_CASE(TouchScrollStarted)
256 default: 258 default:
257 NOTREACHED(); 259 NOTREACHED();
258 return ""; 260 return "";
259 } 261 }
260 } 262 }
261 263
262 } // namespace blink 264 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformEvent.h ('k') | third_party/WebKit/Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698