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

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: Fix typo Created 4 years, 9 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) 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return false; 99 return false;
100 } 100 }
101 101
102 bool WheelEvent::isWheelEvent() const 102 bool WheelEvent::isWheelEvent() const
103 { 103 {
104 return true; 104 return true;
105 } 105 }
106 106
107 PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator() 107 PassRefPtrWillBeRawPtr<EventDispatchMediator> WheelEvent::createMediator()
108 { 108 {
109 return WheelEventDispatchMediator::create(this); 109 return EventDispatchMediator::create(this);
110 } 110 }
111 111
112 DEFINE_TRACE(WheelEvent) 112 DEFINE_TRACE(WheelEvent)
113 { 113 {
114 MouseEvent::trace(visitor); 114 MouseEvent::trace(visitor);
115 } 115 }
116 116
117 PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> WheelEventDispatchMediator::c reate(PassRefPtrWillBeRawPtr<WheelEvent> event)
118 {
119 return adoptRefWillBeNoop(new WheelEventDispatchMediator(event));
120 }
121
122 WheelEventDispatchMediator::WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<Wh eelEvent> event)
123 : EventDispatchMediator(event)
124 {
125 }
126
127 WheelEvent& WheelEventDispatchMediator::event() const
128 {
129 return toWheelEvent(EventDispatchMediator::event());
130 }
131
132 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) cons t
133 {
134 return EventDispatchMediator::dispatchEvent(dispatcher) && !event().defaultH andled();
135 }
136
137 } // namespace blink 117 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/WheelEvent.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698