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

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

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Fix typo Created 4 years, 10 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 , m_deltaX(deltaX) 119 , m_deltaX(deltaX)
120 , m_deltaY(deltaY) 120 , m_deltaY(deltaY)
121 , m_velocityX(velocityX) 121 , m_velocityX(velocityX)
122 , m_velocityY(velocityY) 122 , m_velocityY(velocityY)
123 , m_inertial(inertial) 123 , m_inertial(inertial)
124 , m_source(source) 124 , m_source(source)
125 , m_resendingPluginId(resendingPluginId) 125 , m_resendingPluginId(resendingPluginId)
126 { 126 {
127 } 127 }
128 128
129 PassRefPtrWillBeRawPtr<EventDispatchMediator> GestureEvent::createMediator()
130 {
131 return GestureEventDispatchMediator::create(this);
132 }
133
134 DEFINE_TRACE(GestureEvent) 129 DEFINE_TRACE(GestureEvent)
135 { 130 {
136 MouseRelatedEvent::trace(visitor); 131 MouseRelatedEvent::trace(visitor);
137 } 132 }
138 133
139 GestureEventDispatchMediator::GestureEventDispatchMediator(PassRefPtrWillBeRawPt r<GestureEvent> gestureEvent)
140 : EventDispatchMediator(gestureEvent)
141 {
142 }
143
144 GestureEvent& GestureEventDispatchMediator::event() const
145 {
146 return toGestureEvent(EventDispatchMediator::event());
147 }
148
149 bool GestureEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) co nst
150 {
151 dispatcher.dispatch();
152 ASSERT(!event().defaultPrevented());
153 return event().defaultHandled() || event().defaultPrevented();
154 }
155
156 } // namespace blink 134 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/GestureEvent.h ('k') | third_party/WebKit/Source/core/events/InputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698