| 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 25 matching lines...) Expand all Loading... |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class DOMWrapperWorld; | 38 class DOMWrapperWorld; |
| 39 class EventTarget; | 39 class EventTarget; |
| 40 class ExecutionContext; | 40 class ExecutionContext; |
| 41 | 41 |
| 42 class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>, public Scrip
tWrappable { | 42 class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>, public Scrip
tWrappable { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 43 DEFINE_WRAPPERTYPEINFO(); |
| 44 public: | 44 public: |
| 45 enum PhaseType { | 45 enum PhaseType { |
| 46 NONE = 0, | 46 kNone = 0, |
| 47 CAPTURING_PHASE = 1, | 47 kCapturingPhase = 1, |
| 48 AT_TARGET = 2, | 48 kAtTarget = 2, |
| 49 BUBBLING_PHASE = 3 | 49 kBubblingPhase = 3 |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 enum EventType { | 52 enum EventType { |
| 53 MOUSEDOWN = 1, | 53 kMousedown = 1, |
| 54 MOUSEUP = 2, | 54 kMouseup = 2, |
| 55 MOUSEOVER = 4, | 55 kMouseover = 4, |
| 56 MOUSEOUT = 8, | 56 kMouseout = 8, |
| 57 MOUSEMOVE = 16, | 57 kMousemove = 16, |
| 58 MOUSEDRAG = 32, | 58 kMousedrag = 32, |
| 59 CLICK = 64, | 59 kClick = 64, |
| 60 DBLCLICK = 128, | 60 kDblclick = 128, |
| 61 KEYDOWN = 256, | 61 kKeydown = 256, |
| 62 KEYUP = 512, | 62 kKeyup = 512, |
| 63 KEYPRESS = 1024, | 63 kKeypress = 1024, |
| 64 DRAGDROP = 2048, | 64 kDragdrop = 2048, |
| 65 FOCUS = 4096, | 65 kFocus = 4096, |
| 66 BLUR = 8192, | 66 kBlur = 8192, |
| 67 SELECT = 16384, | 67 kSelect = 16384, |
| 68 CHANGE = 32768 | 68 kChange = 32768 |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 enum RailsMode { | 71 enum RailsMode { |
| 72 RailsModeFree = 0, | 72 RailsModeFree = 0, |
| 73 RailsModeHorizontal = 1, | 73 RailsModeHorizontal = 1, |
| 74 RailsModeVertical = 2 | 74 RailsModeVertical = 2 |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 enum class ComposedMode { | 77 enum class ComposedMode { |
| 78 Composed, | 78 Composed, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // WebInputEvent instance. | 266 // WebInputEvent instance. |
| 267 double m_platformTimeStamp; | 267 double m_platformTimeStamp; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 270 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 271 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 271 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
| 272 | 272 |
| 273 } // namespace blink | 273 } // namespace blink |
| 274 | 274 |
| 275 #endif // Event_h | 275 #endif // Event_h |
| OLD | NEW |