OLD | NEW |
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 Loading... |
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 |
OLD | NEW |