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

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

Issue 20034002: Add support for KeyboardEvent.location attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 [ 21 [
22 ConstructorTemplate=Event 22 ConstructorTemplate=Event
23 ] interface KeyboardEvent : UIEvent { 23 ] interface KeyboardEvent : UIEvent {
24 24
25 [InitializedByEventConstructor] readonly attribute DOMString keyIdent ifier; 25 [InitializedByEventConstructor] readonly attribute DOMString keyIdent ifier;
26 [InitializedByEventConstructor] readonly attribute unsigned long keyLocat ion; 26 [InitializedByEventConstructor] readonly attribute unsigned long location ;
27 [InitializedByEventConstructor] readonly attribute boolean ctrlKey; 27 [InitializedByEventConstructor] readonly attribute boolean ctrlKey;
28 [InitializedByEventConstructor] readonly attribute boolean shiftKey ; 28 [InitializedByEventConstructor] readonly attribute boolean shiftKey ;
29 [InitializedByEventConstructor] readonly attribute boolean altKey; 29 [InitializedByEventConstructor] readonly attribute boolean altKey;
30 [InitializedByEventConstructor] readonly attribute boolean metaKey; 30 [InitializedByEventConstructor] readonly attribute boolean metaKey;
31 readonly attribute boolean altGraphKey; 31 readonly attribute boolean altGraphKey;
32 32
33 // Deprecated attributes kept to maintain backward compatibility.
34 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation, InitializedBy EventConstructor] readonly attribute unsigned long keyLocation;
haraken 2013/07/23 09:21:30 Nit: Shall we write this just below the 'location'
do-not-use 2013/07/23 10:12:04 Ok, if you prefer. I created a "deprecated" sectio
35
33 // FIXME: this does not match the version in the DOM spec. 36 // FIXME: this does not match the version in the DOM spec.
34 void initKeyboardEvent([Default=Undefined] optional DOMString type, 37 void initKeyboardEvent([Default=Undefined] optional DOMString type,
35 [Default=Undefined] optional boolean canBubble, 38 [Default=Undefined] optional boolean canBubble,
36 [Default=Undefined] optional boolean cancelable, 39 [Default=Undefined] optional boolean cancelable,
37 [Default=Undefined] optional Window view, 40 [Default=Undefined] optional Window view,
38 [Default=Undefined] optional DOMString keyIdentifier, 41 [Default=Undefined] optional DOMString keyIdentifier,
39 [Default=Undefined] optional unsigned long keyLocatio n, 42 [Default=Undefined] optional unsigned long location,
40 [Default=Undefined] optional boolean ctrlKey, 43 [Default=Undefined] optional boolean ctrlKey,
41 [Default=Undefined] optional boolean altKey, 44 [Default=Undefined] optional boolean altKey,
42 [Default=Undefined] optional boolean shiftKey, 45 [Default=Undefined] optional boolean shiftKey,
43 [Default=Undefined] optional boolean metaKey, 46 [Default=Undefined] optional boolean metaKey,
44 [Default=Undefined] optional boolean altGraphKey); 47 [Default=Undefined] optional boolean altGraphKey);
45 }; 48 };
46 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698