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

Side by Side Diff: Source/core/events/PointerEvent.h

Issue 1227363006: Virtualize EventDispatchMediator creation and cleanup calling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master_event_trusted_main
Patch Set: Rebase Created 5 years, 5 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 | « Source/core/events/MouseEvent.cpp ('k') | Source/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 PointerEvent_h 5 #ifndef PointerEvent_h
6 #define PointerEvent_h 6 #define PointerEvent_h
7 7
8 #include "core/events/MouseEvent.h" 8 #include "core/events/MouseEvent.h"
9 #include "core/events/PointerEventInit.h" 9 #include "core/events/PointerEventInit.h"
10 10
(...skipping 18 matching lines...) Expand all
29 double height() const { return m_height; } 29 double height() const { return m_height; }
30 float pressure() const { return m_pressure; } 30 float pressure() const { return m_pressure; }
31 long tiltX() const { return m_tiltX; } 31 long tiltX() const { return m_tiltX; }
32 long tiltY() const { return m_tiltY; } 32 long tiltY() const { return m_tiltY; }
33 const String& pointerType() const { return m_pointerType; } 33 const String& pointerType() const { return m_pointerType; }
34 bool isPrimary() const { return m_isPrimary; } 34 bool isPrimary() const { return m_isPrimary; }
35 35
36 bool isMouseEvent() const override; 36 bool isMouseEvent() const override;
37 bool isPointerEvent() const override; 37 bool isPointerEvent() const override;
38 38
39 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
40
39 DECLARE_VIRTUAL_TRACE(); 41 DECLARE_VIRTUAL_TRACE();
40 42
41 private: 43 private:
42 PointerEvent(); 44 PointerEvent();
43 PointerEvent(const AtomicString&, const PointerEventInit&); 45 PointerEvent(const AtomicString&, const PointerEventInit&);
44 46
45 long m_pointerId; 47 long m_pointerId;
46 double m_width; 48 double m_width;
47 double m_height; 49 double m_height;
48 float m_pressure; 50 float m_pressure;
(...skipping 12 matching lines...) Expand all
61 explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>); 63 explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>);
62 PointerEvent& event() const; 64 PointerEvent& event() const;
63 bool dispatchEvent(EventDispatcher&) const override; 65 bool dispatchEvent(EventDispatcher&) const override;
64 }; 66 };
65 67
66 DEFINE_EVENT_TYPE_CASTS(PointerEvent); 68 DEFINE_EVENT_TYPE_CASTS(PointerEvent);
67 69
68 } // namespace blink 70 } // namespace blink
69 71
70 #endif // PointerEvent_h 72 #endif // PointerEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/MouseEvent.cpp ('k') | Source/core/events/PointerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698