| 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 28 matching lines...) Expand all Loading... |
| 39 String keyIdentifier; | 39 String keyIdentifier; |
| 40 unsigned location; | 40 unsigned location; |
| 41 bool ctrlKey; | 41 bool ctrlKey; |
| 42 bool altKey; | 42 bool altKey; |
| 43 bool shiftKey; | 43 bool shiftKey; |
| 44 bool metaKey; | 44 bool metaKey; |
| 45 bool repeat; | 45 bool repeat; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 class KeyboardEvent FINAL : public UIEventWithKeyState { | 48 class KeyboardEvent FINAL : public UIEventWithKeyState { |
| 49 DEFINE_WRAPPERTYPEINFO(); |
| 49 public: | 50 public: |
| 50 enum KeyLocationCode { | 51 enum KeyLocationCode { |
| 51 DOM_KEY_LOCATION_STANDARD = 0x00, | 52 DOM_KEY_LOCATION_STANDARD = 0x00, |
| 52 DOM_KEY_LOCATION_LEFT = 0x01, | 53 DOM_KEY_LOCATION_LEFT = 0x01, |
| 53 DOM_KEY_LOCATION_RIGHT = 0x02, | 54 DOM_KEY_LOCATION_RIGHT = 0x02, |
| 54 DOM_KEY_LOCATION_NUMPAD = 0x03 | 55 DOM_KEY_LOCATION_NUMPAD = 0x03 |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 static PassRefPtrWillBeRawPtr<KeyboardEvent> create() | 58 static PassRefPtrWillBeRawPtr<KeyboardEvent> create() |
| 58 { | 59 { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 private: | 121 private: |
| 121 explicit KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent>
); | 122 explicit KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent>
); |
| 122 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; | 123 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); | 126 DEFINE_EVENT_TYPE_CASTS(KeyboardEvent); |
| 126 | 127 |
| 127 } // namespace blink | 128 } // namespace blink |
| 128 | 129 |
| 129 #endif // KeyboardEvent_h | 130 #endif // KeyboardEvent_h |
| OLD | NEW |