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

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

Issue 1182313006: Populates sourceDevice attribute into KeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // FIXME: this does not match the version in the spec. 44 // FIXME: this does not match the version in the spec.
45 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D OMString type, 45 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D OMString type,
46 [Default=Undefined] optional boolean canBubble, 46 [Default=Undefined] optional boolean canBubble,
47 [Default=Undefined] optional boolean cancelable, 47 [Default=Undefined] optional boolean cancelable,
48 [Default=Undefined] optional Window view, 48 [Default=Undefined] optional Window view,
49 [Default=Undefined] optional DOMString keyIdentifier, 49 [Default=Undefined] optional DOMString keyIdentifier,
50 [Default=Undefined] optional unsigned long location, 50 [Default=Undefined] optional unsigned long location,
51 [Default=Undefined] optional boolean ctrlKey, 51 [Default=Undefined] optional boolean ctrlKey,
52 [Default=Undefined] optional boolean altKey, 52 [Default=Undefined] optional boolean altKey,
53 [Default=Undefined] optional boolean shiftKey, 53 [Default=Undefined] optional boolean shiftKey,
54 [Default=Undefined] optional boolean metaKey); 54 [Default=Undefined] optional boolean metaKey,
55 [Default=Undefined] optional InputDevice? sourceDevic e);
55 56
56 // https://w3c.github.io/uievents/#KeyboardEvent-supplemental-interface 57 // https://w3c.github.io/uievents/#KeyboardEvent-supplemental-interface
57 readonly attribute long charCode; 58 readonly attribute long charCode;
58 readonly attribute long keyCode; 59 readonly attribute long keyCode;
59 readonly attribute long which; 60 readonly attribute long which;
60 61
61 // Non-standard APIs 62 // Non-standard APIs
62 [Measure] readonly attribute DOMString keyIdentifier; 63 [Measure] readonly attribute DOMString keyIdentifier;
63 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr ibute unsigned long keyLocation; 64 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr ibute unsigned long keyLocation;
64 }; 65 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698