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

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

Issue 23444080: Implement KeyboardEvent.repeat attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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
« no previous file with comments | « Source/core/events/KeyboardEvent.h ('k') | Source/core/events/KeyboardEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/KeyboardEvent.cpp
diff --git a/Source/core/events/KeyboardEvent.cpp b/Source/core/events/KeyboardEvent.cpp
index bb302b9c4cfe96d5bd2d02389929e770f7bfb211..b71008798b04580e5277089c10e44d1a7c7ca068 100644
--- a/Source/core/events/KeyboardEvent.cpp
+++ b/Source/core/events/KeyboardEvent.cpp
@@ -92,12 +92,14 @@ KeyboardEventInit::KeyboardEventInit()
, altKey(false)
, shiftKey(false)
, metaKey(false)
+ , repeat(false)
{
}
KeyboardEvent::KeyboardEvent()
: m_location(DOM_KEY_LOCATION_STANDARD)
, m_altGraphKey(false)
+ , m_isAutoRepeat(false)
{
ScriptWrappable::init(this);
}
@@ -109,6 +111,7 @@ KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* vie
, m_keyIdentifier(key.keyIdentifier())
, m_location(keyLocationCode(key))
, m_altGraphKey(false)
+ , m_isAutoRepeat(key.isAutoRepeat())
{
ScriptWrappable::init(this);
}
@@ -118,6 +121,7 @@ KeyboardEvent::KeyboardEvent(const AtomicString& eventType, const KeyboardEventI
, m_keyIdentifier(initializer.keyIdentifier)
, m_location(initializer.location)
, m_altGraphKey(false)
+ , m_isAutoRepeat(initializer.repeat)
{
ScriptWrappable::init(this);
}
@@ -129,6 +133,7 @@ KeyboardEvent::KeyboardEvent(const AtomicString& eventType, bool canBubble, bool
, m_keyIdentifier(keyIdentifier)
, m_location(location)
, m_altGraphKey(altGraphKey)
+ , m_isAutoRepeat(false)
{
ScriptWrappable::init(this);
}
« no previous file with comments | « Source/core/events/KeyboardEvent.h ('k') | Source/core/events/KeyboardEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698