Chromium Code Reviews| Index: Source/core/events/KeyboardEvent.cpp |
| diff --git a/Source/core/events/KeyboardEvent.cpp b/Source/core/events/KeyboardEvent.cpp |
| index 8ddcf6b10b68eb2b80d8232c63322fa0a3c04f89..d801d1052c25d727b50e10bec29dd71bef3b2ddd 100644 |
| --- a/Source/core/events/KeyboardEvent.cpp |
| +++ b/Source/core/events/KeyboardEvent.cpp |
| @@ -106,6 +106,7 @@ KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* vie |
| true, true, view, 0, key.ctrlKey(), key.altKey(), key.shiftKey(), key.metaKey()) |
| , m_keyEvent(adoptPtr(new PlatformKeyboardEvent(key))) |
| , m_keyIdentifier(key.keyIdentifier()) |
| + , m_code(key.code()) |
| , m_location(keyLocationCode(key)) |
| , m_isAutoRepeat(key.isAutoRepeat()) |
| { |
| @@ -121,10 +122,10 @@ KeyboardEvent::KeyboardEvent(const AtomicString& eventType, const KeyboardEventI |
| } |
| KeyboardEvent::KeyboardEvent(const AtomicString& eventType, bool canBubble, bool cancelable, AbstractView *view, |
| - const String &keyIdentifier, unsigned location, |
| - bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) |
| + const String &keyIdentifier, const String &code, unsigned location, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) |
|
bokan
2015/01/20 17:05:58
Nit: should be 'const String&' (no space between t
Habib Virji
2015/01/22 16:01:30
Done.
|
| : UIEventWithKeyState(eventType, canBubble, cancelable, view, 0, ctrlKey, altKey, shiftKey, metaKey) |
| , m_keyIdentifier(keyIdentifier) |
| + , m_code(code) |
| , m_location(location) |
| , m_isAutoRepeat(false) |
| { |
| @@ -135,8 +136,7 @@ KeyboardEvent::~KeyboardEvent() |
| } |
| void KeyboardEvent::initKeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view, |
| - const String &keyIdentifier, unsigned location, |
| - bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) |
| + const String &keyIdentifier, unsigned location, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) |
| { |
| if (dispatched()) |
| return; |