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

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

Issue 2475443004: Add use counter when touch-action isn't used when preventDefault'd. (Closed)
Patch Set: Whoops missed updating a file 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 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 RailsModeHorizontal = 1, 77 RailsModeHorizontal = 1,
78 RailsModeVertical = 2 78 RailsModeVertical = 2
79 }; 79 };
80 80
81 enum class ComposedMode { 81 enum class ComposedMode {
82 Composed, 82 Composed,
83 Scoped, 83 Scoped,
84 }; 84 };
85 85
86 enum class PassiveMode { 86 enum class PassiveMode {
87 NotPassiveDefault,
Rick Byers 2016/11/07 17:01:09 nit: add comments making the difference between th
dtapuska 2016/11/07 18:51:40 Done.
87 NotPassive, 88 NotPassive,
88 Passive, 89 Passive,
89 PassiveForcedDocumentLevel, 90 PassiveForcedDocumentLevel,
91 PassiveDefault,
90 }; 92 };
91 93
92 static Event* create() { return new Event; } 94 static Event* create() { return new Event; }
93 95
94 // A factory for a simple event. The event doesn't bubble, and isn't 96 // A factory for a simple event. The event doesn't bubble, and isn't
95 // cancelable. 97 // cancelable.
96 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html #fire-a-simple-event 98 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html #fire-a-simple-event
97 static Event* create(const AtomicString& type) { 99 static Event* create(const AtomicString& type) {
98 return new Event(type, false, false); 100 return new Event(type, false, false);
99 } 101 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 double m_platformTimeStamp; 308 double m_platformTimeStamp;
307 }; 309 };
308 310
309 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 311 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
310 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ 312 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \
311 event.is##typeName()) 313 event.is##typeName())
312 314
313 } // namespace blink 315 } // namespace blink
314 316
315 #endif // Event_h 317 #endif // Event_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698