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

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

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 // 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 interface KeyboardEvent extends UIEvent default KeyboardEventWrappingImplementat ion { 5 interface KeyboardEvent extends UIEvent default KeyboardEventWrappingImplementat ion {
6 6
7 static const int KEY_LOCATION_LEFT = 0x01; 7 static const int KEY_LOCATION_LEFT = 0x01;
8 8
9 static const int KEY_LOCATION_NUMPAD = 0x03; 9 static const int KEY_LOCATION_NUMPAD = 0x03;
10 10
11 static const int KEY_LOCATION_RIGHT = 0x02; 11 static const int KEY_LOCATION_RIGHT = 0x02;
12 12
13 static const int KEY_LOCATION_STANDARD = 0x00; 13 static const int KEY_LOCATION_STANDARD = 0x00;
14 14
15 KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation, 15 KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation,
16 [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, 16 [bool canBubble, bool cancelable, bool ctrlKey, bool altKey,
17 bool shiftKey, bool metaKey, bool altGraphKey]); 17 bool shiftKey, bool metaKey, bool altGraphKey]);
18 18
19 bool get altGraphKey(); 19 bool get altGraphKey;
20 20
21 bool get altKey(); 21 bool get altKey;
22 22
23 bool get ctrlKey(); 23 bool get ctrlKey;
24 24
25 String get keyIdentifier(); 25 String get keyIdentifier;
26 26
27 int get keyLocation(); 27 int get keyLocation;
28 28
29 bool get metaKey(); 29 bool get metaKey;
30 30
31 bool get shiftKey(); 31 bool get shiftKey;
32 32
33 bool getModifierState(String keyIdentifierArg); 33 bool getModifierState(String keyIdentifierArg);
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
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 * Sound) key 561 * Sound) key
562 */ 562 */
563 static const String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; 563 static const 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 const String UNIDENTIFIED = "Unidentified"; 569 static const String UNIDENTIFIED = "Unidentified";
570 } 570 }
OLDNEW
« no previous file with comments | « lib/html/src/HashChangeEventWrappingImplementation.dart ('k') | lib/html/src/KeyboardEventWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698