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

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

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 10 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
« no previous file with comments | « core/events/HashChangeEventInit.idl ('k') | core/events/KeyboardEventInit.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 // https://w3c.github.io/uievents/#interface-KeyboardEvent
22
21 [ 23 [
22 EventConstructor, 24 Constructor(DOMString type, optional KeyboardEventInit eventInitDict),
25 ConstructorCallWith=ScriptState,
23 ] interface KeyboardEvent : UIEvent { 26 ] interface KeyboardEvent : UIEvent {
27 // KeyLocationCode
24 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00; 28 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
25 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01; 29 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
26 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; 30 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
27 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03; 31 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
32 [RuntimeEnabled=KeyboardEventKey] readonly attribute DOMString key;
33 [RuntimeEnabled=KeyboardEventCode] readonly attribute DOMString code;
34 readonly attribute unsigned long location;
35 readonly attribute boolean ctrlKey;
36 readonly attribute boolean shiftKey;
37 readonly attribute boolean altKey;
38 readonly attribute boolean metaKey;
39 readonly attribute boolean repeat;
40 // TODO(philipj): readonly attribute boolean isComposing;
41 boolean getModifierState(DOMString keyArg);
28 42
29 [InitializedByEventConstructor] readonly attribute DOMString keyIdent ifier; 43 // https://w3c.github.io/uievents/#idl-interface-KeyboardEvent-initializers
30 [InitializedByEventConstructor] readonly attribute unsigned long location ; 44 // FIXME: this does not match the version in the spec.
31 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation, InitializedBy EventConstructor] readonly attribute unsigned long keyLocation; // Deprecated. 45 [CallWith=ScriptState, Measure] void initKeyboardEvent([Default=Undefined] o ptional DOMString type,
32 [InitializedByEventConstructor] readonly attribute boolean ctrlKey; 46 [Default=Undefined] o ptional boolean bubbles,
33 [InitializedByEventConstructor] readonly attribute boolean shiftKey ; 47 [Default=Undefined] o ptional boolean cancelable,
34 [InitializedByEventConstructor] readonly attribute boolean altKey; 48 [Default=Undefined] o ptional Window view,
35 [InitializedByEventConstructor] readonly attribute boolean metaKey; 49 [Default=Undefined] o ptional DOMString keyIdentifier,
36 [InitializedByEventConstructor] readonly attribute boolean repeat; 50 [Default=Undefined] o ptional unsigned long location,
51 [Default=Undefined] o ptional boolean ctrlKey,
52 [Default=Undefined] o ptional boolean altKey,
53 [Default=Undefined] o ptional boolean shiftKey,
54 [Default=Undefined] o ptional boolean metaKey);
37 55
38 boolean getModifierState(DOMString keyArgument); 56 // https://w3c.github.io/uievents/#KeyboardEvent-supplemental-interface
57 readonly attribute long charCode;
58 readonly attribute long keyCode;
59 readonly attribute long which;
39 60
40 // FIXME: this does not match the version in the DOM spec. 61 // Non-standard APIs
41 void initKeyboardEvent([Default=Undefined] optional DOMString type, 62 [Measure] readonly attribute DOMString keyIdentifier;
42 [Default=Undefined] optional boolean canBubble, 63 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr ibute unsigned long keyLocation;
43 [Default=Undefined] optional boolean cancelable,
44 [Default=Undefined] optional Window view,
45 [Default=Undefined] optional DOMString keyIdentifier,
46 [Default=Undefined] optional unsigned long location,
47 [Default=Undefined] optional boolean ctrlKey,
48 [Default=Undefined] optional boolean altKey,
49 [Default=Undefined] optional boolean shiftKey,
50 [Default=Undefined] optional boolean metaKey);
51 }; 64 };
52
OLDNEW
« no previous file with comments | « core/events/HashChangeEventInit.idl ('k') | core/events/KeyboardEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698