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

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

Issue 887793002: Implement PointerEvent#dx (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Another nit Created 5 years, 10 months 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 | « no previous file | sky/engine/core/events/PointerEvent.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_ 5 #ifndef SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_
6 #define SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_ 6 #define SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_
7 7
8 #include "sky/engine/core/events/Event.h" 8 #include "sky/engine/core/events/Event.h"
9 #include "sky/engine/public/platform/WebInputEvent.h" 9 #include "sky/engine/public/platform/WebInputEvent.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 double distance() const { return m_distance; } 70 double distance() const { return m_distance; }
71 double distanceMin() const { return m_distanceMin; } 71 double distanceMin() const { return m_distanceMin; }
72 double distanceMax() const { return m_distanceMax; } 72 double distanceMax() const { return m_distanceMax; }
73 double radiusMajor() const { return m_radiusMajor; } 73 double radiusMajor() const { return m_radiusMajor; }
74 double radiusMinor() const { return m_radiusMinor; } 74 double radiusMinor() const { return m_radiusMinor; }
75 double radiusMin() const { return m_radiusMin; } 75 double radiusMin() const { return m_radiusMin; }
76 double radiusMax() const { return m_radiusMax; } 76 double radiusMax() const { return m_radiusMax; }
77 double orientation() const { return m_orientation; } 77 double orientation() const { return m_orientation; }
78 double tilt() const { return m_tilt; } 78 double tilt() const { return m_tilt; }
79 79
80 void setDX(double dx) { m_dx = dx; }
81 void setDY(double dy) { m_dy = dy; }
82
80 private: 83 private:
81 PointerEvent(); 84 PointerEvent();
82 explicit PointerEvent(const WebPointerEvent& event); 85 explicit PointerEvent(const WebPointerEvent& event);
83 PointerEvent(const AtomicString&, const PointerEventInit&); 86 PointerEvent(const AtomicString&, const PointerEventInit&);
84 87
85 int m_pointer; 88 int m_pointer;
86 String m_kind; 89 String m_kind;
87 double m_x; 90 double m_x;
88 double m_y; 91 double m_y;
89 double m_dx; 92 double m_dx;
(...skipping 12 matching lines...) Expand all
102 double m_radiusMinor; 105 double m_radiusMinor;
103 double m_radiusMin; 106 double m_radiusMin;
104 double m_radiusMax; 107 double m_radiusMax;
105 double m_orientation; 108 double m_orientation;
106 double m_tilt; 109 double m_tilt;
107 }; 110 };
108 111
109 } // namespace blink 112 } // namespace blink
110 113
111 #endif // SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_ 114 #endif // SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/events/PointerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698