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

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

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new fling Created 4 years, 4 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 PlatformEvent::DispatchType toPlatformDispatchType(WebInputEvent::DispatchType t ype) 93 PlatformEvent::DispatchType toPlatformDispatchType(WebInputEvent::DispatchType t ype)
94 { 94 {
95 static_assert(PlatformEvent::DispatchType::Blocking == static_cast<PlatformE vent::DispatchType>(WebInputEvent::DispatchType::Blocking), 95 static_assert(PlatformEvent::DispatchType::Blocking == static_cast<PlatformE vent::DispatchType>(WebInputEvent::DispatchType::Blocking),
96 "Dispatch Types not equal"); 96 "Dispatch Types not equal");
97 static_assert(PlatformEvent::DispatchType::EventNonBlocking == static_cast<P latformEvent::DispatchType>(WebInputEvent::DispatchType::EventNonBlocking), 97 static_assert(PlatformEvent::DispatchType::EventNonBlocking == static_cast<P latformEvent::DispatchType>(WebInputEvent::DispatchType::EventNonBlocking),
98 "Dispatch Types not equal"); 98 "Dispatch Types not equal");
99 static_assert(PlatformEvent::DispatchType::ListenersNonBlockingPassive == st atic_cast<PlatformEvent::DispatchType>(WebInputEvent::DispatchType::ListenersNon BlockingPassive), 99 static_assert(PlatformEvent::DispatchType::ListenersNonBlockingPassive == st atic_cast<PlatformEvent::DispatchType>(WebInputEvent::DispatchType::ListenersNon BlockingPassive),
100 "Dispatch Types not equal"); 100 "Dispatch Types not equal");
101 static_assert(PlatformEvent::DispatchType::ListenersForcedNonBlockingPassive == static_cast<PlatformEvent::DispatchType>(WebInputEvent::DispatchType::Listen ersForcedNonBlockingPassive), 101 static_assert(PlatformEvent::DispatchType::ListenersForcedNonBlockingPassive DueToFling == static_cast<PlatformEvent::DispatchType>(WebInputEvent::DispatchTy pe::ListenersForcedNonBlockingPassiveDueToFling),
102 "Dispatch Types not equal"); 102 "Dispatch Types not equal");
103 103
104 return static_cast<PlatformEvent::DispatchType>(type); 104 return static_cast<PlatformEvent::DispatchType>(type);
105 } 105 }
106 106
107 unsigned toPlatformModifierFrom(WebMouseEvent::Button button) 107 unsigned toPlatformModifierFrom(WebMouseEvent::Button button)
108 { 108 {
109 if (button == WebMouseEvent::ButtonNone) 109 if (button == WebMouseEvent::ButtonNone)
110 return 0; 110 return 0;
111 111
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 break; 816 break;
817 case GestureSourceTouchscreen: 817 case GestureSourceTouchscreen:
818 sourceDevice = WebGestureDeviceTouchscreen; 818 sourceDevice = WebGestureDeviceTouchscreen;
819 break; 819 break;
820 case GestureSourceUninitialized: 820 case GestureSourceUninitialized:
821 NOTREACHED(); 821 NOTREACHED();
822 } 822 }
823 } 823 }
824 824
825 } // namespace blink 825 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698