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

Side by Side Diff: client/html/src/KeyboardEvent.dart

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementat ion {
6
7 interface KeyboardEvent extends UIEvent {
8 6
9 static final int KEY_LOCATION_LEFT = 0x01; 7 static final int KEY_LOCATION_LEFT = 0x01;
10 8
11 static final int KEY_LOCATION_NUMPAD = 0x03; 9 static final int KEY_LOCATION_NUMPAD = 0x03;
12 10
13 static final int KEY_LOCATION_RIGHT = 0x02; 11 static final int KEY_LOCATION_RIGHT = 0x02;
14 12
15 static final int KEY_LOCATION_STANDARD = 0x00; 13 static final int KEY_LOCATION_STANDARD = 0x00;
16 14
15 KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation,
16 [bool canBubble, bool cancelable, bool ctrlKey, bool altKey,
17 bool shiftKey, bool metaKey, bool altGraphKey]);
18
17 bool get altGraphKey(); 19 bool get altGraphKey();
18 20
19 bool get altKey(); 21 bool get altKey();
20 22
21 bool get ctrlKey(); 23 bool get ctrlKey();
22 24
23 String get keyIdentifier(); 25 String get keyIdentifier();
24 26
25 int get keyLocation(); 27 int get keyLocation();
26 28
27 bool get metaKey(); 29 bool get metaKey();
28 30
29 bool get shiftKey(); 31 bool get shiftKey();
30 32
31 bool getModifierState(String keyIdentifierArg); 33 bool getModifierState(String keyIdentifierArg);
32
33 void initKeyboardEvent(String type, bool canBubble, bool cancelable, Window vi ew, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shift Key, bool metaKey, bool altGraphKey);
34 } 34 }
35 35
36 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 36 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
37 // for details. All rights reserved. Use of this source code is governed by a 37 // for details. All rights reserved. Use of this source code is governed by a
38 // BSD-style license that can be found in the LICENSE file. 38 // BSD-style license that can be found in the LICENSE file.
39 39
40 /** 40 /**
41 * Defines the standard key locations returned by 41 * Defines the standard key locations returned by
42 * KeyboardEvent.getKeyLocation. 42 * KeyboardEvent.getKeyLocation.
43 */ 43 */
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 * Sound) key 561 * Sound) key
562 */ 562 */
563 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; 563 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
564 564
565 /** 565 /**
566 * Key value used when an implementation is unable to identify another key 566 * Key value used when an implementation is unable to identify another key
567 * value, due to either hardware, platform, or software constraints 567 * value, due to either hardware, platform, or software constraints
568 */ 568 */
569 static final String UNIDENTIFIED = "Unidentified"; 569 static final String UNIDENTIFIED = "Unidentified";
570 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698