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

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

Issue 2454073005: Add isComposing support for KeyboardEvents (Closed)
Patch Set: Fix windows and linux Created 4 years, 1 month 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 19 matching lines...) Expand all
30 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; 30 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
31 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03; 31 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
32 readonly attribute DOMString key; 32 readonly attribute DOMString key;
33 readonly attribute DOMString code; 33 readonly attribute DOMString code;
34 readonly attribute unsigned long location; 34 readonly attribute unsigned long location;
35 readonly attribute boolean ctrlKey; 35 readonly attribute boolean ctrlKey;
36 readonly attribute boolean shiftKey; 36 readonly attribute boolean shiftKey;
37 readonly attribute boolean altKey; 37 readonly attribute boolean altKey;
38 readonly attribute boolean metaKey; 38 readonly attribute boolean metaKey;
39 readonly attribute boolean repeat; 39 readonly attribute boolean repeat;
40 // TODO(foolip): readonly attribute boolean isComposing; 40 readonly attribute boolean isComposing;
41 boolean getModifierState(DOMString keyArg); 41 boolean getModifierState(DOMString keyArg);
42 42
43 // https://w3c.github.io/uievents/#idl-interface-KeyboardEvent-initializers 43 // https://w3c.github.io/uievents/#idl-interface-KeyboardEvent-initializers
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, Measure] void initKeyboardEvent([Default=Undefined] o ptional DOMString type, 45 [CallWith=ScriptState, Measure] void initKeyboardEvent([Default=Undefined] o ptional DOMString type,
46 [Default=Undefined] o ptional boolean bubbles, 46 [Default=Undefined] o ptional boolean bubbles,
47 [Default=Undefined] o ptional boolean cancelable, 47 [Default=Undefined] o ptional boolean cancelable,
48 [Default=Undefined] o ptional Window? view, 48 [Default=Undefined] o ptional Window? view,
49 [Default=Undefined] o ptional DOMString keyIdentifier, 49 [Default=Undefined] o ptional DOMString keyIdentifier,
50 [Default=Undefined] o ptional unsigned long location, 50 [Default=Undefined] o ptional unsigned long location,
51 [Default=Undefined] o ptional boolean ctrlKey, 51 [Default=Undefined] o ptional boolean ctrlKey,
52 [Default=Undefined] o ptional boolean altKey, 52 [Default=Undefined] o ptional boolean altKey,
53 [Default=Undefined] o ptional boolean shiftKey, 53 [Default=Undefined] o ptional boolean shiftKey,
54 [Default=Undefined] o ptional boolean metaKey); 54 [Default=Undefined] o ptional boolean metaKey);
55 55
56 // https://w3c.github.io/uievents/#KeyboardEvent-supplemental-interface 56 // https://w3c.github.io/uievents/#KeyboardEvent-supplemental-interface
57 readonly attribute long charCode; 57 readonly attribute long charCode;
58 readonly attribute long keyCode; 58 readonly attribute long keyCode;
59 readonly attribute long which; 59 readonly attribute long which;
60 }; 60 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.cpp ('k') | third_party/WebKit/Source/core/events/KeyboardEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698