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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 17759006: Added minimal documentation to the KeyboardEvent class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 13439 matching lines...) Expand 10 before | Expand all | Expand 10 after
13450 13450
13451 @DomName('InputMethodContext.setExclusionRectangle') 13451 @DomName('InputMethodContext.setExclusionRectangle')
13452 @DocsEditable 13452 @DocsEditable
13453 void setExclusionRectangle(Node anchor, int x, int y, int w, int h) native; 13453 void setExclusionRectangle(Node anchor, int x, int y, int w, int h) native;
13454 } 13454 }
13455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13456 // for details. All rights reserved. Use of this source code is governed by a 13456 // for details. All rights reserved. Use of this source code is governed by a
13457 // BSD-style license that can be found in the LICENSE file. 13457 // BSD-style license that can be found in the LICENSE file.
13458 13458
13459 13459
13460 /**
13461 * An event that describes user interaction with the keyboard.
13462 *
13463 * The [type] of the event identifies what kind of interaction occurred.
13464 *
13465 * See also:
13466 *
13467 * * [KeyboardEvent](https://developer.mozilla.org/en/DOM/KeyboardEvent) at MDN.
13468 */
13460 @DomName('KeyboardEvent') 13469 @DomName('KeyboardEvent')
13461 class KeyboardEvent extends UIEvent native "KeyboardEvent" { 13470 class KeyboardEvent extends UIEvent native "KeyboardEvent" {
13462 13471
13463 factory KeyboardEvent(String type, 13472 factory KeyboardEvent(String type,
13464 {Window view, bool canBubble: true, bool cancelable: true, 13473 {Window view, bool canBubble: true, bool cancelable: true,
13465 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, 13474 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
13466 bool altKey: false, bool shiftKey: false, bool metaKey: false, 13475 bool altKey: false, bool shiftKey: false, bool metaKey: false,
13467 bool altGraphKey: false}) { 13476 bool altGraphKey: false}) {
13468 if (view == null) { 13477 if (view == null) {
13469 view = window; 13478 view = window;
(...skipping 16135 matching lines...) Expand 10 before | Expand all | Expand 10 after
29605 _position = nextPosition; 29614 _position = nextPosition;
29606 return true; 29615 return true;
29607 } 29616 }
29608 _current = null; 29617 _current = null;
29609 _position = _array.length; 29618 _position = _array.length;
29610 return false; 29619 return false;
29611 } 29620 }
29612 29621
29613 T get current => _current; 29622 T get current => _current;
29614 } 29623 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698