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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactory.h

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PointerEventFactory_h 5 #ifndef PointerEventFactory_h
6 #define PointerEventFactory_h 6 #define PointerEventFactory_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/PointerEvent.h" 9 #include "core/events/PointerEvent.h"
10 #include "public/platform/WebPointerProperties.h" 10 #include "public/platform/WebPointerProperties.h"
(...skipping 13 matching lines...) Expand all
24 // 2. 24 // 2.
25 class CORE_EXPORT PointerEventFactory { 25 class CORE_EXPORT PointerEventFactory {
26 DISALLOW_NEW(); 26 DISALLOW_NEW();
27 public: 27 public:
28 28
29 PointerEventFactory(); 29 PointerEventFactory();
30 ~PointerEventFactory(); 30 ~PointerEventFactory();
31 31
32 PointerEvent* create( 32 PointerEvent* create(
33 const AtomicString& mouseEventName, const PlatformMouseEvent&, 33 const AtomicString& mouseEventName, const PlatformMouseEvent&,
34 EventTarget* relatedTarget,
35 LocalDOMWindow*); 34 LocalDOMWindow*);
36 35
37 PointerEvent* create(const AtomicString& type, 36 PointerEvent* create(const AtomicString& type,
38 const PlatformTouchPoint&, PlatformEvent::Modifiers, 37 const PlatformTouchPoint&, PlatformEvent::Modifiers,
39 const FloatSize& pointRadius, 38 const FloatSize& pointRadius,
40 const FloatPoint& clientPoint, 39 const FloatPoint& clientPoint,
41 DOMWindow*); 40 DOMWindow*);
42 41
43 PointerEvent* createPointerCancelEvent( 42 PointerEvent* createPointerCancelEvent(
44 const int pointerId, const WebPointerProperties::PointerType); 43 const int pointerId, const WebPointerProperties::PointerType);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 int m_currentId; 111 int m_currentId;
113 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign edHash, UnsignedHash>> m_pointerIncomingIdMapping; 112 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign edHash, UnsignedHash>> m_pointerIncomingIdMapping;
114 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId Mapping; 113 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId Mapping;
115 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr y) + 1]; 114 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr y) + 1];
116 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + 1]; 115 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + 1];
117 }; 116 };
118 117
119 } // namespace blink 118 } // namespace blink
120 119
121 #endif // PointerEventFactory_h 120 #endif // PointerEventFactory_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698