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

Side by Side Diff: third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.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 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 AddEventListenerOptionsResolved_h 5 #ifndef AddEventListenerOptionsResolved_h
6 #define AddEventListenerOptionsResolved_h 6 #define AddEventListenerOptionsResolved_h
7 7
8 #include "core/events/AddEventListenerOptions.h" 8 #include "core/events/AddEventListenerOptions.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 11 matching lines...) Expand all
22 AddEventListenerOptionsResolved(const AddEventListenerOptions&); 22 AddEventListenerOptionsResolved(const AddEventListenerOptions&);
23 virtual ~AddEventListenerOptionsResolved(); 23 virtual ~AddEventListenerOptionsResolved();
24 24
25 void setPassiveForcedForDocumentTarget(bool forced) { 25 void setPassiveForcedForDocumentTarget(bool forced) {
26 m_passiveForcedForDocumentTarget = forced; 26 m_passiveForcedForDocumentTarget = forced;
27 } 27 }
28 bool passiveForcedForDocumentTarget() const { 28 bool passiveForcedForDocumentTarget() const {
29 return m_passiveForcedForDocumentTarget; 29 return m_passiveForcedForDocumentTarget;
30 } 30 }
31 31
32 // Set whether passive was specified when the options were
33 // created by callee.
34 void setPassiveSpecified(bool specified) { m_passiveSpecified = specified; }
35 bool passiveSpecified() const { return m_passiveSpecified; }
36
32 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
33 38
34 private: 39 private:
35 bool m_passiveForcedForDocumentTarget; 40 bool m_passiveForcedForDocumentTarget;
41 bool m_passiveSpecified;
36 }; 42 };
37 43
38 } // namespace blink 44 } // namespace blink
39 45
40 #endif // AddEventListenerOptionsResolved_h 46 #endif // AddEventListenerOptionsResolved_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/AddEventListenerOptionsResolved.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698