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

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

Issue 21030004: Add support for KeyboardEvent.getModifierState() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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 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,
(...skipping 12 matching lines...) Expand all
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 keyLocat ion;
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 boolean getModifierState(DOMString keyArgument);
34
33 // FIXME: this does not match the version in the DOM spec. 35 // FIXME: this does not match the version in the DOM spec.
34 void initKeyboardEvent([Default=Undefined] optional DOMString type, 36 void initKeyboardEvent([Default=Undefined] optional DOMString type,
35 [Default=Undefined] optional boolean canBubble, 37 [Default=Undefined] optional boolean canBubble,
36 [Default=Undefined] optional boolean cancelable, 38 [Default=Undefined] optional boolean cancelable,
37 [Default=Undefined] optional Window view, 39 [Default=Undefined] optional Window view,
38 [Default=Undefined] optional DOMString keyIdentifier, 40 [Default=Undefined] optional DOMString keyIdentifier,
39 [Default=Undefined] optional unsigned long keyLocatio n, 41 [Default=Undefined] optional unsigned long keyLocatio n,
40 [Default=Undefined] optional boolean ctrlKey, 42 [Default=Undefined] optional boolean ctrlKey,
41 [Default=Undefined] optional boolean altKey, 43 [Default=Undefined] optional boolean altKey,
42 [Default=Undefined] optional boolean shiftKey, 44 [Default=Undefined] optional boolean shiftKey,
43 [Default=Undefined] optional boolean metaKey, 45 [Default=Undefined] optional boolean metaKey,
44 [Default=Undefined] optional boolean altGraphKey); 46 [Default=Undefined] optional boolean altGraphKey);
45 }; 47 };
46 48
OLDNEW
« Source/core/dom/KeyboardEvent.cpp ('K') | « Source/core/dom/KeyboardEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698