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

Side by Side Diff: third_party/WebKit/Source/core/events/GestureEvent.cpp

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode Created 4 years, 3 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 GestureSource source = GestureSourceUninitialized; 44 GestureSource source = GestureSourceUninitialized;
45 switch (event.source()) { 45 switch (event.source()) {
46 case PlatformGestureSourceTouchpad: 46 case PlatformGestureSourceTouchpad:
47 source = GestureSourceTouchpad; 47 source = GestureSourceTouchpad;
48 break; 48 break;
49 case PlatformGestureSourceTouchscreen: 49 case PlatformGestureSourceTouchscreen:
50 source = GestureSourceTouchscreen; 50 source = GestureSourceTouchscreen;
51 break; 51 break;
52 default: 52 default:
53 ASSERT_NOT_REACHED(); 53 NOTREACHED();
54 } 54 }
55 55
56 switch (event.type()) { 56 switch (event.type()) {
57 case PlatformEvent::GestureScrollBegin: 57 case PlatformEvent::GestureScrollBegin:
58 eventType = EventTypeNames::gesturescrollstart; 58 eventType = EventTypeNames::gesturescrollstart;
59 synthetic = event.synthetic(); 59 synthetic = event.synthetic();
60 deltaUnits = event.deltaUnits(); 60 deltaUnits = event.deltaUnits();
61 inertialPhase = event.inertialPhase(); 61 inertialPhase = event.inertialPhase();
62 break; 62 break;
63 case PlatformEvent::GestureScrollEnd: 63 case PlatformEvent::GestureScrollEnd:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 , m_resendingPluginId(resendingPluginId) 127 , m_resendingPluginId(resendingPluginId)
128 { 128 {
129 } 129 }
130 130
131 DEFINE_TRACE(GestureEvent) 131 DEFINE_TRACE(GestureEvent)
132 { 132 {
133 MouseRelatedEvent::trace(visitor); 133 MouseRelatedEvent::trace(visitor);
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/GenericEventQueue.cpp ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698