Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: sky/engine/core/events/WheelEvent.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/events/UIEvent.cpp ('k') | sky/engine/core/events/WheelEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int wheelDeltaX() const { return m_wheelDelta.x(); } // Deprecated, negative when scrolling right. 81 int wheelDeltaX() const { return m_wheelDelta.x(); } // Deprecated, negative when scrolling right.
82 int wheelDeltaY() const { return m_wheelDelta.y(); } // Deprecated, negative when scrolling down. 82 int wheelDeltaY() const { return m_wheelDelta.y(); } // Deprecated, negative when scrolling down.
83 unsigned deltaMode() const { return m_deltaMode; } 83 unsigned deltaMode() const { return m_deltaMode; }
84 float ticksX() const { return static_cast<float>(m_wheelDelta.x()) / TickMul tiplier; } 84 float ticksX() const { return static_cast<float>(m_wheelDelta.x()) / TickMul tiplier; }
85 float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMul tiplier; } 85 float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMul tiplier; }
86 86
87 virtual const AtomicString& interfaceName() const override; 87 virtual const AtomicString& interfaceName() const override;
88 virtual bool isMouseEvent() const override; 88 virtual bool isMouseEvent() const override;
89 virtual bool isWheelEvent() const override; 89 virtual bool isWheelEvent() const override;
90 90
91 virtual void trace(Visitor*) override;
92
93 private: 91 private:
94 WheelEvent(); 92 WheelEvent();
95 WheelEvent(const AtomicString&, const WheelEventInit&); 93 WheelEvent(const AtomicString&, const WheelEventInit&);
96 WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta, 94 WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
97 unsigned, PassRefPtr<AbstractView>, const IntPoint& screenLocation, cons t IntPoint& pageLocation, 95 unsigned, PassRefPtr<AbstractView>, const IntPoint& screenLocation, cons t IntPoint& pageLocation,
98 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); 96 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
99 97
100 IntPoint m_wheelDelta; 98 IntPoint m_wheelDelta;
101 double m_deltaX; 99 double m_deltaX;
102 double m_deltaY; 100 double m_deltaY;
103 double m_deltaZ; 101 double m_deltaZ;
104 unsigned m_deltaMode; 102 unsigned m_deltaMode;
105 }; 103 };
106 104
107 DEFINE_EVENT_TYPE_CASTS(WheelEvent); 105 DEFINE_EVENT_TYPE_CASTS(WheelEvent);
108 106
109 class WheelEventDispatchMediator final : public EventDispatchMediator { 107 class WheelEventDispatchMediator final : public EventDispatchMediator {
110 public: 108 public:
111 static PassRefPtr<WheelEventDispatchMediator> create(const PlatformWheelEven t&, PassRefPtr<AbstractView>); 109 static PassRefPtr<WheelEventDispatchMediator> create(const PlatformWheelEven t&, PassRefPtr<AbstractView>);
112 private: 110 private:
113 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtr<AbstractVie w>); 111 WheelEventDispatchMediator(const PlatformWheelEvent&, PassRefPtr<AbstractVie w>);
114 WheelEvent* event() const; 112 WheelEvent* event() const;
115 virtual bool dispatchEvent(EventDispatcher*) const override; 113 virtual bool dispatchEvent(EventDispatcher*) const override;
116 }; 114 };
117 115
118 } // namespace blink 116 } // namespace blink
119 117
120 #endif // WheelEvent_h 118 #endif // WheelEvent_h
OLDNEW
« no previous file with comments | « sky/engine/core/events/UIEvent.cpp ('k') | sky/engine/core/events/WheelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698