| 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 22 matching lines...) Expand all Loading... |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class PlatformWheelEvent; | 35 class PlatformWheelEvent; |
| 36 | 36 |
| 37 class CORE_EXPORT WheelEvent final : public MouseEvent { | 37 class CORE_EXPORT WheelEvent final : public MouseEvent { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 39 public: |
| 40 enum { TickMultiplier = 120 }; | 40 enum { TickMultiplier = 120 }; |
| 41 | 41 |
| 42 enum DeltaMode { | 42 enum DeltaMode { |
| 43 DOM_DELTA_PIXEL = 0, | 43 kDomDeltaPixel = 0, |
| 44 DOM_DELTA_LINE, | 44 kDomDeltaLine, |
| 45 DOM_DELTA_PAGE | 45 kDomDeltaPage |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 static WheelEvent* create() | 48 static WheelEvent* create() |
| 49 { | 49 { |
| 50 return new WheelEvent; | 50 return new WheelEvent; |
| 51 } | 51 } |
| 52 | 52 |
| 53 static WheelEvent* create(const PlatformWheelEvent& platformEvent, AbstractV
iew*); | 53 static WheelEvent* create(const PlatformWheelEvent& platformEvent, AbstractV
iew*); |
| 54 | 54 |
| 55 static WheelEvent* create(const AtomicString& type, const WheelEventInit& in
itializer) | 55 static WheelEvent* create(const AtomicString& type, const WheelEventInit& in
itializer) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int m_resendingPluginId; | 105 int m_resendingPluginId; |
| 106 bool m_hasPreciseScrollingDeltas; | 106 bool m_hasPreciseScrollingDeltas; |
| 107 RailsMode m_railsMode; | 107 RailsMode m_railsMode; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 DEFINE_EVENT_TYPE_CASTS(WheelEvent); | 110 DEFINE_EVENT_TYPE_CASTS(WheelEvent); |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| 113 | 113 |
| 114 #endif // WheelEvent_h | 114 #endif // WheelEvent_h |
| OLD | NEW |