| Index: Source/core/events/KeyboardEvent.h
|
| diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h
|
| index a99c05f2a7e61ebbd6ac629d222c0a4dd0d42fd8..f769900ff50fe64837e313b3255602d885dce30a 100644
|
| --- a/Source/core/events/KeyboardEvent.h
|
| +++ b/Source/core/events/KeyboardEvent.h
|
| @@ -70,10 +70,10 @@ public:
|
| }
|
|
|
| static PassRefPtrWillBeRawPtr<KeyboardEvent> create(const AtomicString& type, bool canBubble, bool cancelable, AbstractView* view,
|
| - const String& keyIdentifier, unsigned location,
|
| + const String& keyIdentifier, const String& code, unsigned location,
|
| bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
|
| {
|
| - return adoptRefWillBeNoop(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, location,
|
| + return adoptRefWillBeNoop(new KeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, code, location,
|
| ctrlKey, altKey, shiftKey, metaKey));
|
| }
|
|
|
| @@ -84,6 +84,8 @@ public:
|
| bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
|
|
|
| const String& keyIdentifier() const { return m_keyIdentifier; }
|
| + const String& code() const { return m_code; }
|
| +
|
| unsigned location() const { return m_location; }
|
|
|
| bool getModifierState(const String& keyIdentifier) const;
|
| @@ -105,11 +107,12 @@ private:
|
| KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
|
| KeyboardEvent(const AtomicString&, const KeyboardEventInit&);
|
| KeyboardEvent(const AtomicString& type, bool canBubble, bool cancelable, AbstractView*,
|
| - const String& keyIdentifier, unsigned location,
|
| + const String& keyIdentifier, const String& code, unsigned location,
|
| bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
|
|
|
| OwnPtr<PlatformKeyboardEvent> m_keyEvent;
|
| String m_keyIdentifier;
|
| + String m_code;
|
| unsigned m_location;
|
| bool m_isAutoRepeat : 1;
|
| };
|
|
|