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

Side by Side Diff: third_party/WebKit/Source/core/input/TouchEventManager.h

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename 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 TouchEventManager_h 5 #ifndef TouchEventManager_h
6 #define TouchEventManager_h 6 #define TouchEventManager_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/PointerEventFactory.h" 9 #include "core/events/PointerEventFactory.h"
10 #include "platform/UserGestureIndicator.h" 10 #include "platform/UserGestureIndicator.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 using TouchTargetMap = HeapHashMap<unsigned, Member<Node>, DefaultHash<unsig ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; 92 using TouchTargetMap = HeapHashMap<unsigned, Member<Node>, DefaultHash<unsig ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
93 TouchTargetMap m_targetForTouchID; 93 TouchTargetMap m_targetForTouchID;
94 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash , WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; 94 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash , WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
95 TouchRegionMap m_regionForTouchID; 95 TouchRegionMap m_regionForTouchID;
96 96
97 // If set, the document of the active touch sequence. Unset if no touch sequ ence active. 97 // If set, the document of the active touch sequence. Unset if no touch sequ ence active.
98 Member<Document> m_touchSequenceDocument; 98 Member<Document> m_touchSequenceDocument;
99 99
100 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; 100 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken;
101 bool m_touchPressed; 101 bool m_touchPressed;
102 // True if waiting on first touch move after a touch start.
103 bool m_waitingForFirstTouchMove;
104 // True if a touch is active but scrolling/zooming has started. 102 // True if a touch is active but scrolling/zooming has started.
105 bool m_touchScrollStarted; 103 bool m_touchScrollStarted;
106 // The touch event currently being handled or NoType if none. 104 // The touch event currently being handled or NoType if none.
107 PlatformEvent::EventType m_currentEvent; 105 PlatformEvent::EventType m_currentEvent;
108 }; 106 };
109 107
110 } // namespace blink 108 } // namespace blink
111 109
112 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); 110 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo);
113 111
114 #endif // TouchEventManager_h 112 #endif // TouchEventManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698