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 reserv
ed. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 KEYDOWN = 256, | 69 KEYDOWN = 256, |
70 KEYUP = 512, | 70 KEYUP = 512, |
71 KEYPRESS = 1024, | 71 KEYPRESS = 1024, |
72 DRAGDROP = 2048, | 72 DRAGDROP = 2048, |
73 FOCUS = 4096, | 73 FOCUS = 4096, |
74 BLUR = 8192, | 74 BLUR = 8192, |
75 SELECT = 16384, | 75 SELECT = 16384, |
76 CHANGE = 32768 | 76 CHANGE = 32768 |
77 }; | 77 }; |
78 | 78 |
| 79 enum RailsMode { |
| 80 RailsModeFree = 0, |
| 81 RailsModeHorizontal = 1, |
| 82 RailsModeVertical = 2 |
| 83 }; |
| 84 |
79 static PassRefPtrWillBeRawPtr<Event> create() | 85 static PassRefPtrWillBeRawPtr<Event> create() |
80 { | 86 { |
81 return adoptRefWillBeNoop(new Event); | 87 return adoptRefWillBeNoop(new Event); |
82 } | 88 } |
83 | 89 |
84 // A factory for a simple event. The event doesn't bubble, and isn't | 90 // A factory for a simple event. The event doesn't bubble, and isn't |
85 // cancelable. | 91 // cancelable. |
86 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.ht
ml#fire-a-simple-event | 92 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.ht
ml#fire-a-simple-event |
87 static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type) | 93 static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type) |
88 { | 94 { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 OwnPtrWillBeMember<EventPath> m_eventPath; | 225 OwnPtrWillBeMember<EventPath> m_eventPath; |
220 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. | 226 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. |
221 }; | 227 }; |
222 | 228 |
223 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 229 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
224 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 230 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
225 | 231 |
226 } // namespace blink | 232 } // namespace blink |
227 | 233 |
228 #endif // Event_h | 234 #endif // Event_h |
OLD | NEW |