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

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

Issue 874823002: Move GestureEvent to NewEventDispatcher (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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 | « sky/engine/core/events/GestureEvent.idl ('k') | 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/core/events/EventDispatchMediator.h"
10 #include "sky/engine/core/frame/LocalDOMWindow.h"
11 #include "sky/engine/public/platform/WebInputEvent.h" 9 #include "sky/engine/public/platform/WebInputEvent.h"
12 10
13 namespace blink { 11 namespace blink {
14 12
15 struct PointerEventInit : public EventInit { 13 struct PointerEventInit : public EventInit {
16 int pointer = 0; 14 int pointer = 0;
17 String kind; 15 String kind;
18 double x = 0; 16 double x = 0;
19 double y = 0; 17 double y = 0;
20 double dx = 0; 18 double dx = 0;
(...skipping 24 matching lines...) Expand all
45 return adoptRef(new PointerEvent); 43 return adoptRef(new PointerEvent);
46 } 44 }
47 static PassRefPtr<PointerEvent> create(const WebPointerEvent& event) 45 static PassRefPtr<PointerEvent> create(const WebPointerEvent& event)
48 { 46 {
49 return adoptRef(new PointerEvent(event)); 47 return adoptRef(new PointerEvent(event));
50 } 48 }
51 static PassRefPtr<PointerEvent> create(const AtomicString& type, const Point erEventInit& initializer) 49 static PassRefPtr<PointerEvent> create(const AtomicString& type, const Point erEventInit& initializer)
52 { 50 {
53 return adoptRef(new PointerEvent(type, initializer)); 51 return adoptRef(new PointerEvent(type, initializer));
54 } 52 }
53
55 ~PointerEvent() override; 54 ~PointerEvent() override;
55 const AtomicString& interfaceName() const override;
56 56
57 int pointer() const { return m_pointer; } 57 int pointer() const { return m_pointer; }
58 const String& kind() const { return m_kind; } 58 const String& kind() const { return m_kind; }
59 double x() const { return m_x; } 59 double x() const { return m_x; }
60 double y() const { return m_y; } 60 double y() const { return m_y; }
61 double dx() const { return m_dx; } 61 double dx() const { return m_dx; }
62 double dy() const { return m_dy; } 62 double dy() const { return m_dy; }
63 int buttons() const { return m_buttons; } 63 int buttons() const { return m_buttons; }
64 bool down() const { return m_down; } 64 bool down() const { return m_down; }
65 bool primary() const { return m_primary; } 65 bool primary() const { return m_primary; }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 double m_radiusMinor; 102 double m_radiusMinor;
103 double m_radiusMin; 103 double m_radiusMin;
104 double m_radiusMax; 104 double m_radiusMax;
105 double m_orientation; 105 double m_orientation;
106 double m_tilt; 106 double m_tilt;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_ 111 #endif // SKY_ENGINE_CORE_EVENTS_POINTEREVENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/events/GestureEvent.idl ('k') | sky/engine/core/events/PointerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698