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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void WheelEvent::initWebKitWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<A
bstractView> view, | 106 void WheelEvent::initWebKitWheelEvent(int rawDeltaX, int rawDeltaY, PassRefPtr<A
bstractView> view, |
107 int screenX, int screenY, int pageX, int p
ageY, | 107 int screenX, int screenY, int pageX, int p
ageY, |
108 bool ctrlKey, bool altKey, bool shiftKey,
bool metaKey) | 108 bool ctrlKey, bool altKey, bool shiftKey,
bool metaKey) |
109 { | 109 { |
110 initWheelEvent(rawDeltaX, rawDeltaY, view, screenX, screenY, pageX, pageY, | 110 initWheelEvent(rawDeltaX, rawDeltaY, view, screenX, screenY, pageX, pageY, |
111 ctrlKey, altKey, shiftKey, metaKey); | 111 ctrlKey, altKey, shiftKey, metaKey); |
112 } | 112 } |
113 | 113 |
114 const AtomicString& WheelEvent::interfaceName() const | 114 const AtomicString& WheelEvent::interfaceName() const |
115 { | 115 { |
116 return eventNames().interfaceForWheelEvent; | 116 return EventNames::WheelEvent; |
117 } | 117 } |
118 | 118 |
119 bool WheelEvent::isMouseEvent() const | 119 bool WheelEvent::isMouseEvent() const |
120 { | 120 { |
121 return false; | 121 return false; |
122 } | 122 } |
123 | 123 |
124 bool WheelEvent::isWheelEvent() const | 124 bool WheelEvent::isWheelEvent() const |
125 { | 125 { |
126 return true; | 126 return true; |
(...skipping 24 matching lines...) Expand all Loading... |
151 return static_cast<WheelEvent*>(EventDispatchMediator::event()); | 151 return static_cast<WheelEvent*>(EventDispatchMediator::event()); |
152 } | 152 } |
153 | 153 |
154 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 154 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
155 { | 155 { |
156 ASSERT(event()); | 156 ASSERT(event()); |
157 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); | 157 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); |
158 } | 158 } |
159 | 159 |
160 } // namespace WebCore | 160 } // namespace WebCore |
OLD | NEW |