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

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: Access DOM Code value using embedder API 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 31bd42f7fcd285fb092a61600df662a70a8e603b..1c4c3536580af7c239d505426ed93a73c451d61c 100644
--- a/Source/core/events/KeyboardEvent.h
+++ b/Source/core/events/KeyboardEvent.h
@@ -36,6 +36,7 @@ struct KeyboardEventInit : public UIEventInit {
KeyboardEventInit();
String keyIdentifier;
+ String code;
unsigned location;
bool ctrlKey;
bool altKey;
@@ -84,6 +85,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;
@@ -112,6 +115,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