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

Side by Side Diff: third_party/WebKit/Source/core/events/WheelEvent.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: Rebase Created 5 years 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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return false; 100 return false;
101 } 101 }
102 102
103 bool WheelEvent::isWheelEvent() const 103 bool WheelEvent::isWheelEvent() const
104 { 104 {
105 return true; 105 return true;
106 } 106 }
107 107
108 PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator() 108 PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator()
109 { 109 {
110 return WheelEventDispatchMediator::create(this); 110 return EventDispatchMediator::create(this);
111 } 111 }
112 112
113 DEFINE_TRACE(WheelEvent) 113 DEFINE_TRACE(WheelEvent)
114 { 114 {
115 MouseEvent::trace(visitor); 115 MouseEvent::trace(visitor);
116 } 116 }
117 117
118 PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> WheelEventDispatchMediator::c reate(PassRefPtrWillBeRawPtr<WheelEvent> event)
119 {
120 return adoptRefWillBeNoop(new WheelEventDispatchMediator(event));
121 }
122
123 WheelEventDispatchMediator::WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<Wh eelEvent> event)
124 : EventDispatchMediator(event)
125 {
126 }
127
128 WheelEvent& WheelEventDispatchMediator::event() const
129 {
130 return toWheelEvent(EventDispatchMediator::event());
131 }
132
133 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) cons t
134 {
135 return EventDispatchMediator::dispatchEvent(dispatcher) && !event().defaultH andled();
136 }
137
138 } // namespace blink 118 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698