| 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, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv
ed. |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 double deltaZ() const { return m_deltaZ; } | 74 double deltaZ() const { return m_deltaZ; } |
| 75 int wheelDelta() const { return wheelDeltaY() ? wheelDeltaY() : wheelDeltaX(
); } // Deprecated. | 75 int wheelDelta() const { return wheelDeltaY() ? wheelDeltaY() : wheelDeltaX(
); } // Deprecated. |
| 76 int wheelDeltaX() const { return m_wheelDelta.x(); } // Deprecated, negative
when scrolling right. | 76 int wheelDeltaX() const { return m_wheelDelta.x(); } // Deprecated, negative
when scrolling right. |
| 77 int wheelDeltaY() const { return m_wheelDelta.y(); } // Deprecated, negative
when scrolling down. | 77 int wheelDeltaY() const { return m_wheelDelta.y(); } // Deprecated, negative
when scrolling down. |
| 78 unsigned deltaMode() const { return m_deltaMode; } | 78 unsigned deltaMode() const { return m_deltaMode; } |
| 79 float ticksX() const { return static_cast<float>(m_wheelDelta.x()) / TickMul
tiplier; } | 79 float ticksX() const { return static_cast<float>(m_wheelDelta.x()) / TickMul
tiplier; } |
| 80 float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMul
tiplier; } | 80 float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMul
tiplier; } |
| 81 bool canScroll() const { return m_canScroll; } | 81 bool canScroll() const { return m_canScroll; } |
| 82 int resendingPluginId() const { return m_resendingPluginId; } | 82 int resendingPluginId() const { return m_resendingPluginId; } |
| 83 bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas;
} | 83 bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas;
} |
| 84 RailsMode railsMode() const { return m_railsMode; } | 84 RailsMode getRailsMode() const { return m_railsMode; } |
| 85 | 85 |
| 86 const AtomicString& interfaceName() const override; | 86 const AtomicString& interfaceName() const override; |
| 87 bool isMouseEvent() const override; | 87 bool isMouseEvent() const override; |
| 88 bool isWheelEvent() const override; | 88 bool isWheelEvent() const override; |
| 89 | 89 |
| 90 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; | 90 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; |
| 91 | 91 |
| 92 DECLARE_VIRTUAL_TRACE(); | 92 DECLARE_VIRTUAL_TRACE(); |
| 93 | 93 |
| 94 private: | 94 private: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 118 | 118 |
| 119 private: | 119 private: |
| 120 explicit WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<WheelEvent>); | 120 explicit WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<WheelEvent>); |
| 121 WheelEvent& event() const; | 121 WheelEvent& event() const; |
| 122 bool dispatchEvent(EventDispatcher&) const override; | 122 bool dispatchEvent(EventDispatcher&) const override; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| 126 | 126 |
| 127 #endif // WheelEvent_h | 127 #endif // WheelEvent_h |
| OLD | NEW |