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

Side by Side Diff: third_party/WebKit/Source/web/WebInputEventConversion.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: Created 4 years, 9 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 { 357 {
358 switch (type) { 358 switch (type) {
359 case WebInputEvent::TouchStart: 359 case WebInputEvent::TouchStart:
360 return PlatformEvent::TouchStart; 360 return PlatformEvent::TouchStart;
361 case WebInputEvent::TouchMove: 361 case WebInputEvent::TouchMove:
362 return PlatformEvent::TouchMove; 362 return PlatformEvent::TouchMove;
363 case WebInputEvent::TouchEnd: 363 case WebInputEvent::TouchEnd:
364 return PlatformEvent::TouchEnd; 364 return PlatformEvent::TouchEnd;
365 case WebInputEvent::TouchCancel: 365 case WebInputEvent::TouchCancel:
366 return PlatformEvent::TouchCancel; 366 return PlatformEvent::TouchCancel;
367 case WebInputEvent::TouchScrollStarted:
368 return PlatformEvent::TouchScrollStarted;
367 default: 369 default:
368 ASSERT_NOT_REACHED(); 370 ASSERT_NOT_REACHED();
369 } 371 }
370 return PlatformEvent::TouchStart; 372 return PlatformEvent::TouchStart;
371 } 373 }
372 374
373 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo int::State state) 375 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo int::State state)
374 { 376 {
375 switch (state) { 377 switch (state) {
376 case WebTouchPoint::StateReleased: 378 case WebTouchPoint::StateReleased:
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 break; 742 break;
741 case GestureSourceTouchscreen: 743 case GestureSourceTouchscreen:
742 sourceDevice = WebGestureDeviceTouchscreen; 744 sourceDevice = WebGestureDeviceTouchscreen;
743 break; 745 break;
744 case GestureSourceUninitialized: 746 case GestureSourceUninitialized:
745 ASSERT_NOT_REACHED(); 747 ASSERT_NOT_REACHED();
746 } 748 }
747 } 749 }
748 750
749 } // namespace blink 751 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698