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

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: Fixed touch_event_stream_validator 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 case WebInputEvent::GestureDoubleTap: 164 case WebInputEvent::GestureDoubleTap:
165 case WebInputEvent::GestureTwoFingerTap: 165 case WebInputEvent::GestureTwoFingerTap:
166 case WebInputEvent::GestureLongPress: 166 case WebInputEvent::GestureLongPress:
167 case WebInputEvent::GestureLongTap: 167 case WebInputEvent::GestureLongTap:
168 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev ent)); 168 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev ent));
169 169
170 case WebInputEvent::TouchStart: 170 case WebInputEvent::TouchStart:
171 case WebInputEvent::TouchMove: 171 case WebInputEvent::TouchMove:
172 case WebInputEvent::TouchEnd: 172 case WebInputEvent::TouchEnd:
173 case WebInputEvent::TouchCancel: 173 case WebInputEvent::TouchCancel:
174 case WebInputEvent::TouchScrollStarted:
174 if (!root || !root->view()) 175 if (!root || !root->view())
175 return WebInputEventResult::NotHandled; 176 return WebInputEventResult::NotHandled;
176 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&> (event)); 177 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&> (event));
177 case WebInputEvent::GesturePinchBegin: 178 case WebInputEvent::GesturePinchBegin:
178 case WebInputEvent::GesturePinchEnd: 179 case WebInputEvent::GesturePinchEnd:
179 case WebInputEvent::GesturePinchUpdate: 180 case WebInputEvent::GesturePinchUpdate:
180 // Touchscreen pinch events are currently not handled in main thread. On ce they are, 181 // Touchscreen pinch events are currently not handled in main thread. On ce they are,
181 // these should be passed to |handleGestureEvent| similar to gesture scr oll events. 182 // these should be passed to |handleGestureEvent| similar to gesture scr oll events.
182 return WebInputEventResult::NotHandled; 183 return WebInputEventResult::NotHandled;
183 default: 184 default:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 WEBINPUT_EVENT_CASE(TouchMove) 256 WEBINPUT_EVENT_CASE(TouchMove)
256 WEBINPUT_EVENT_CASE(TouchEnd) 257 WEBINPUT_EVENT_CASE(TouchEnd)
257 WEBINPUT_EVENT_CASE(TouchCancel) 258 WEBINPUT_EVENT_CASE(TouchCancel)
258 default: 259 default:
259 ASSERT_NOT_REACHED(); 260 ASSERT_NOT_REACHED();
260 return ""; 261 return "";
261 } 262 }
262 } 263 }
263 264
264 } // namespace blink 265 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698