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

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

Issue 2475443004: Add use counter when touch-action isn't used when preventDefault'd. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 "public/platform/WebInputEventResult.h" 10 #include "public/platform/WebInputEventResult.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; 89 WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
90 TouchRegionMap m_regionForTouchID; 90 TouchRegionMap m_regionForTouchID;
91 91
92 // If set, the document of the active touch sequence. Unset if no touch 92 // If set, the document of the active touch sequence. Unset if no touch
93 // sequence active. 93 // sequence active.
94 Member<Document> m_touchSequenceDocument; 94 Member<Document> m_touchSequenceDocument;
95 95
96 bool m_touchPressed; 96 bool m_touchPressed;
97 // The touch event currently being handled or NoType if none. 97 // The touch event currently being handled or NoType if none.
98 PlatformEvent::EventType m_currentEvent; 98 PlatformEvent::EventType m_currentEvent;
99
100 // The current touch action, computed on each touch start and is
101 // a union of all touches. Reset when all touches are released.
102 TouchAction m_currentTouchAction;
99 }; 103 };
100 104
101 } // namespace blink 105 } // namespace blink
102 106
103 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo); 107 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::TouchEventManager::TouchInfo);
104 108
105 #endif // TouchEventManager_h 109 #endif // TouchEventManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698