| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool WheelEvent::isMouseEvent() const | 79 bool WheelEvent::isMouseEvent() const |
| 80 { | 80 { |
| 81 return false; | 81 return false; |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool WheelEvent::isWheelEvent() const | 84 bool WheelEvent::isWheelEvent() const |
| 85 { | 85 { |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void WheelEvent::trace(Visitor* visitor) | |
| 90 { | |
| 91 MouseEvent::trace(visitor); | |
| 92 } | |
| 93 | |
| 94 inline static unsigned deltaMode(const PlatformWheelEvent& event) | 89 inline static unsigned deltaMode(const PlatformWheelEvent& event) |
| 95 { | 90 { |
| 96 return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::DOM_DELTA
_PAGE : WheelEvent::DOM_DELTA_PIXEL; | 91 return event.granularity() == ScrollByPageWheelEvent ? WheelEvent::DOM_DELTA
_PAGE : WheelEvent::DOM_DELTA_PIXEL; |
| 97 } | 92 } |
| 98 | 93 |
| 99 PassRefPtr<WheelEventDispatchMediator> WheelEventDispatchMediator::create(const
PlatformWheelEvent& event, PassRefPtr<AbstractView> view) | 94 PassRefPtr<WheelEventDispatchMediator> WheelEventDispatchMediator::create(const
PlatformWheelEvent& event, PassRefPtr<AbstractView> view) |
| 100 { | 95 { |
| 101 return adoptRef(new WheelEventDispatchMediator(event, view)); | 96 return adoptRef(new WheelEventDispatchMediator(event, view)); |
| 102 } | 97 } |
| 103 | 98 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 116 return toWheelEvent(EventDispatchMediator::event()); | 111 return toWheelEvent(EventDispatchMediator::event()); |
| 117 } | 112 } |
| 118 | 113 |
| 119 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 114 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
| 120 { | 115 { |
| 121 ASSERT(event()); | 116 ASSERT(event()); |
| 122 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); | 117 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); |
| 123 } | 118 } |
| 124 | 119 |
| 125 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |