Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1008)

Unified Diff: Source/core/events/KeyboardEvent.h

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test fix Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/events/KeyboardEvent.h
diff --git a/Source/core/events/KeyboardEvent.h b/Source/core/events/KeyboardEvent.h
index 9a7dc39682b9e03d4ac25b66abdb3600414eb529..4caea941751a42dd32307253df5179a00da71f12 100644
--- a/Source/core/events/KeyboardEvent.h
+++ b/Source/core/events/KeyboardEvent.h
@@ -37,6 +37,7 @@ struct KeyboardEventInit : public UIEventInit {
KeyboardEventInit();
String keyIdentifier;
+ String code;
unsigned location;
bool ctrlKey;
bool altKey;
@@ -85,6 +86,8 @@ public:
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
const String& keyIdentifier() const { return m_keyIdentifier; }
+ const String& code() { return m_code; };
+
unsigned location() const { return m_location; }
bool getModifierState(const String& keyIdentifier) const;
@@ -113,6 +116,7 @@ private:
String m_keyIdentifier;
unsigned m_location;
bool m_isAutoRepeat : 1;
+ String m_code;
};
class KeyboardEventDispatchMediator : public EventDispatchMediator {

Powered by Google App Engine
This is Rietveld 408576698