OLD | NEW |
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 Loading... |
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 // Not passive, default initialized. |
| 88 NotPassiveDefault, |
| 89 // Not passive, explicitly specified. |
87 NotPassive, | 90 NotPassive, |
| 91 // Passive, explicitly specified. |
88 Passive, | 92 Passive, |
| 93 // Passive, not explicitly specified and forced due to document level |
| 94 // listener. |
89 PassiveForcedDocumentLevel, | 95 PassiveForcedDocumentLevel, |
| 96 // Passive, default initialized. |
| 97 PassiveDefault, |
90 }; | 98 }; |
91 | 99 |
92 static Event* create() { return new Event; } | 100 static Event* create() { return new Event; } |
93 | 101 |
94 // A factory for a simple event. The event doesn't bubble, and isn't | 102 // A factory for a simple event. The event doesn't bubble, and isn't |
95 // cancelable. | 103 // cancelable. |
96 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html
#fire-a-simple-event | 104 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html
#fire-a-simple-event |
97 static Event* create(const AtomicString& type) { | 105 static Event* create(const AtomicString& type) { |
98 return new Event(type, false, false); | 106 return new Event(type, false, false); |
99 } | 107 } |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 double m_platformTimeStamp; | 319 double m_platformTimeStamp; |
312 }; | 320 }; |
313 | 321 |
314 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 322 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
315 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ | 323 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ |
316 event.is##typeName()) | 324 event.is##typeName()) |
317 | 325 |
318 } // namespace blink | 326 } // namespace blink |
319 | 327 |
320 #endif // Event_h | 328 #endif // Event_h |
OLD | NEW |