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

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: 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) 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 { 386 {
387 switch (type) { 387 switch (type) {
388 case WebInputEvent::TouchStart: 388 case WebInputEvent::TouchStart:
389 return PlatformEvent::TouchStart; 389 return PlatformEvent::TouchStart;
390 case WebInputEvent::TouchMove: 390 case WebInputEvent::TouchMove:
391 return PlatformEvent::TouchMove; 391 return PlatformEvent::TouchMove;
392 case WebInputEvent::TouchEnd: 392 case WebInputEvent::TouchEnd:
393 return PlatformEvent::TouchEnd; 393 return PlatformEvent::TouchEnd;
394 case WebInputEvent::TouchCancel: 394 case WebInputEvent::TouchCancel:
395 return PlatformEvent::TouchCancel; 395 return PlatformEvent::TouchCancel;
396 case WebInputEvent::TouchScrollStarted:
397 return PlatformEvent::TouchScrollStarted;
396 default: 398 default:
397 NOTREACHED(); 399 NOTREACHED();
398 } 400 }
399 return PlatformEvent::TouchStart; 401 return PlatformEvent::TouchStart;
400 } 402 }
401 403
402 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo int::State state) 404 inline PlatformTouchPoint::TouchState toPlatformTouchPointState(const WebTouchPo int::State state)
403 { 405 {
404 switch (state) { 406 switch (state) {
405 case WebTouchPoint::StateReleased: 407 case WebTouchPoint::StateReleased:
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 break; 785 break;
784 case GestureSourceTouchscreen: 786 case GestureSourceTouchscreen:
785 sourceDevice = WebGestureDeviceTouchscreen; 787 sourceDevice = WebGestureDeviceTouchscreen;
786 break; 788 break;
787 case GestureSourceUninitialized: 789 case GestureSourceUninitialized:
788 NOTREACHED(); 790 NOTREACHED();
789 } 791 }
790 } 792 }
791 793
792 } // namespace blink 794 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageWidgetDelegate.cpp ('k') | third_party/WebKit/public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698