| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 double deltaX; | 39 double deltaX; |
| 40 double deltaY; | 40 double deltaY; |
| 41 double deltaZ; | 41 double deltaZ; |
| 42 int wheelDeltaX; // Deprecated. | 42 int wheelDeltaX; // Deprecated. |
| 43 int wheelDeltaY; // Deprecated. | 43 int wheelDeltaY; // Deprecated. |
| 44 unsigned deltaMode; | 44 unsigned deltaMode; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class WheelEvent FINAL : public MouseEvent { | 47 class WheelEvent FINAL : public MouseEvent { |
| 48 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 49 public: |
| 49 enum { TickMultiplier = 120 }; | 50 enum { TickMultiplier = 120 }; |
| 50 | 51 |
| 51 enum DeltaMode { | 52 enum DeltaMode { |
| 52 DOM_DELTA_PIXEL = 0, | 53 DOM_DELTA_PIXEL = 0, |
| 53 DOM_DELTA_LINE, | 54 DOM_DELTA_LINE, |
| 54 DOM_DELTA_PAGE | 55 DOM_DELTA_PAGE |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 static PassRefPtrWillBeRawPtr<WheelEvent> create() | 58 static PassRefPtrWillBeRawPtr<WheelEvent> create() |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 static PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> create(const Platf
ormWheelEvent&, PassRefPtrWillBeRawPtr<AbstractView>); | 111 static PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> create(const Platf
ormWheelEvent&, PassRefPtrWillBeRawPtr<AbstractView>); |
| 111 private: | 112 private: |
| 112 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtrWillBeRawPtr
<AbstractView>); | 113 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtrWillBeRawPtr
<AbstractView>); |
| 113 WheelEvent* event() const; | 114 WheelEvent* event() const; |
| 114 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 115 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace blink | 118 } // namespace blink |
| 118 | 119 |
| 119 #endif // WheelEvent_h | 120 #endif // WheelEvent_h |
| OLD | NEW |