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

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

Issue 872233002: Switch KeyboardEvents over to NewEventHandler (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename virtualKeyCode to key Created 5 years, 11 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 | « sky/engine/core/events/KeyboardEvent.cpp ('k') | sky/engine/core/frame/NewEventHandler.h » ('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 // Copyright 2015 The Chromium Authors. All rights reserved.
2 * Copyright (C) 2006 Apple Computer, Inc. 2 // Use of this source code is governed by a BSD-style license that can be
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 // found in the LICENSE file.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
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
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20 4
21 [ 5 [
22 EventConstructor, 6 EventConstructor,
23 ] interface KeyboardEvent : UIEvent { 7 ] interface KeyboardEvent : Event {
24 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00; 8 // For keydown and keyup events:
25 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01; 9 [InitializedByEventConstructor] readonly attribute long key;
26 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; 10 [InitializedByEventConstructor] readonly attribute DOMString location;
27 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
28 11
29 [InitializedByEventConstructor] readonly attribute DOMString keyIdent ifier; 12 // For keypress events:
30 [InitializedByEventConstructor] readonly attribute unsigned long location ; 13 [InitializedByEventConstructor] readonly attribute long charCode;
31 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation, InitializedBy EventConstructor] readonly attribute unsigned long keyLocation; // Deprecated.
32 [InitializedByEventConstructor] readonly attribute boolean ctrlKey;
33 [InitializedByEventConstructor] readonly attribute boolean shiftKey ;
34 [InitializedByEventConstructor] readonly attribute boolean altKey;
35 [InitializedByEventConstructor] readonly attribute boolean metaKey;
36 [InitializedByEventConstructor] readonly attribute boolean repeat;
37 14
38 boolean getModifierState(DOMString keyArgument); 15 [InitializedByEventConstructor] readonly attribute boolean ctrlKey;
39 16 [InitializedByEventConstructor] readonly attribute boolean shiftKey;
40 // FIXME: this does not match the version in the DOM spec. 17 [InitializedByEventConstructor] readonly attribute boolean altKey;
41 void initKeyboardEvent([Default=Undefined] optional DOMString type, 18 [InitializedByEventConstructor] readonly attribute boolean metaKey;
42 [Default=Undefined] optional boolean canBubble, 19 [InitializedByEventConstructor] readonly attribute boolean repeat;
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 }; 20 };
52
OLDNEW
« no previous file with comments | « sky/engine/core/events/KeyboardEvent.cpp ('k') | sky/engine/core/frame/NewEventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698