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

Side by Side Diff: Source/core/events/KeyboardEvent.idl

Issue 933323002: Add experimental Support for DOM3 KeyboardEvent key value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated global-interface-listing as test were failing due to addition of the key Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 [ 21 [
22 Constructor(DOMString type, optional KeyboardEventInit eventInitDict), 22 Constructor(DOMString type, optional KeyboardEventInit eventInitDict),
23 ConstructorCallWith=ScriptState, 23 ConstructorCallWith=ScriptState,
24 ] interface KeyboardEvent : UIEvent { 24 ] interface KeyboardEvent : UIEvent {
25 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00; 25 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
26 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01; 26 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
27 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; 27 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
28 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03; 28 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
29 29
30 [RuntimeEnabled=KeyboardEventCode] readonly attribute DOMString code; 30 [RuntimeEnabled=KeyboardEventCode] readonly attribute DOMString code;
31 [RuntimeEnabled=KeyboardEventKey] readonly attribute DOMString key;
31 readonly attribute DOMString keyIdentifier; 32 readonly attribute DOMString keyIdentifier;
32 readonly attribute unsigned long location; 33 readonly attribute unsigned long location;
33 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr ibute unsigned long keyLocation; // Deprecated. 34 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr ibute unsigned long keyLocation; // Deprecated.
34 readonly attribute boolean ctrlKey; 35 readonly attribute boolean ctrlKey;
35 readonly attribute boolean shiftKey; 36 readonly attribute boolean shiftKey;
36 readonly attribute boolean altKey; 37 readonly attribute boolean altKey;
37 readonly attribute boolean metaKey; 38 readonly attribute boolean metaKey;
38 readonly attribute boolean repeat; 39 readonly attribute boolean repeat;
39 40
40 boolean getModifierState(DOMString keyArgument); 41 boolean getModifierState(DOMString keyArgument);
41 42
42 // FIXME: this does not match the version in the DOM spec. 43 // FIXME: this does not match the version in the DOM spec.
43 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D OMString type, 44 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D OMString type,
44 [Default=Undefined] optional boolean canBubble, 45 [Default=Undefined] optional boolean canBubble,
45 [Default=Undefined] optional boolean cancelable, 46 [Default=Undefined] optional boolean cancelable,
46 [Default=Undefined] optional Window view, 47 [Default=Undefined] optional Window view,
47 [Default=Undefined] optional DOMString keyIdentifier, 48 [Default=Undefined] optional DOMString keyIdentifier,
48 [Default=Undefined] optional unsigned long location, 49 [Default=Undefined] optional unsigned long location,
49 [Default=Undefined] optional boolean ctrlKey, 50 [Default=Undefined] optional boolean ctrlKey,
50 [Default=Undefined] optional boolean altKey, 51 [Default=Undefined] optional boolean altKey,
51 [Default=Undefined] optional boolean shiftKey, 52 [Default=Undefined] optional boolean shiftKey,
52 [Default=Undefined] optional boolean metaKey); 53 [Default=Undefined] optional boolean metaKey);
53 54
54 readonly attribute long charCode; 55 readonly attribute long charCode;
55 readonly attribute long keyCode; 56 readonly attribute long keyCode;
56 readonly attribute long which; 57 readonly attribute long which;
57 }; 58 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698