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

Unified Diff: core/dom/KeyboardEvent.idl

Issue 23014006: Roll IDL to multivm@1350 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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 | « core/dom/EventListener.idl ('k') | core/dom/MessagePort.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/dom/KeyboardEvent.idl
diff --git a/core/dom/KeyboardEvent.idl b/core/dom/KeyboardEvent.idl
index cda219fa046a5e9267bf90a8bc30adc1e560042e..81b2c171dbe2676f789dad5428fb11740c1ae8af 100644
--- a/core/dom/KeyboardEvent.idl
+++ b/core/dom/KeyboardEvent.idl
@@ -21,22 +21,33 @@
[
ConstructorTemplate=Event
] interface KeyboardEvent : UIEvent {
+ const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
+ const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
+ const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
+ const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
+ // FIXME: The following constants are defined in the specification but
+ // not yet supported (crbug.com/265446).
+ // const unsigned long DOM_KEY_LOCATION_MOBILE = 0x04;
+ // const unsigned long DOM_KEY_LOCATION_JOYSTICK = 0x05;
[InitializedByEventConstructor] readonly attribute DOMString keyIdentifier;
- [InitializedByEventConstructor] readonly attribute unsigned long keyLocation;
+ [InitializedByEventConstructor] readonly attribute unsigned long location;
+ [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation, InitializedByEventConstructor] readonly attribute unsigned long keyLocation; // Deprecated.
[InitializedByEventConstructor] readonly attribute boolean ctrlKey;
[InitializedByEventConstructor] readonly attribute boolean shiftKey;
[InitializedByEventConstructor] readonly attribute boolean altKey;
[InitializedByEventConstructor] readonly attribute boolean metaKey;
readonly attribute boolean altGraphKey;
+ boolean getModifierState(DOMString keyArgument);
+
// FIXME: this does not match the version in the DOM spec.
void initKeyboardEvent([Default=Undefined] optional DOMString type,
[Default=Undefined] optional boolean canBubble,
[Default=Undefined] optional boolean cancelable,
[Default=Undefined] optional Window view,
[Default=Undefined] optional DOMString keyIdentifier,
- [Default=Undefined] optional unsigned long keyLocation,
+ [Default=Undefined] optional unsigned long location,
[Default=Undefined] optional boolean ctrlKey,
[Default=Undefined] optional boolean altKey,
[Default=Undefined] optional boolean shiftKey,
« no previous file with comments | « core/dom/EventListener.idl ('k') | core/dom/MessagePort.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698