| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class EventDispatcher; | 34 class EventDispatcher; |
| 35 class PlatformKeyboardEvent; | 35 class PlatformKeyboardEvent; |
| 36 | 36 |
| 37 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState { | 37 class CORE_EXPORT KeyboardEvent final : public UIEventWithKeyState { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 39 public: |
| 40 enum KeyLocationCode { | 40 enum KeyLocationCode { |
| 41 DOM_KEY_LOCATION_STANDARD = 0x00, | 41 kDomKeyLocationStandard = 0x00, |
| 42 DOM_KEY_LOCATION_LEFT = 0x01, | 42 kDomKeyLocationLeft = 0x01, |
| 43 DOM_KEY_LOCATION_RIGHT = 0x02, | 43 kDomKeyLocationRight = 0x02, |
| 44 DOM_KEY_LOCATION_NUMPAD = 0x03 | 44 kDomKeyLocationNumpad = 0x03 |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 static KeyboardEvent* create() | 47 static KeyboardEvent* create() |
| 48 { | 48 { |
| 49 return new KeyboardEvent; | 49 return new KeyboardEvent; |
| 50 } | 50 } |
| 51 | 51 |
| 52 static KeyboardEvent* create(const PlatformKeyboardEvent& platformEvent, Abs
tractView* view) | 52 static KeyboardEvent* create(const PlatformKeyboardEvent& platformEvent, Abs
tractView* view) |
| 53 { | 53 { |
| 54 return new KeyboardEvent(platformEvent, view); | 54 return new KeyboardEvent(platformEvent, view); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 String m_code; | 100 String m_code; |
| 101 String m_key; | 101 String m_key; |
| 102 unsigned m_location; | 102 unsigned m_location; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); | 105 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| 108 | 108 |
| 109 #endif // KeyboardEvent_h | 109 #endif // KeyboardEvent_h |
| OLD | NEW |