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

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate
deleted file mode 100644
index d6213e4ffd94599c213ef685fc34dcb50ef90aed..0000000000000000000000000000000000000000
--- a/sdk/lib/html/templates/html/dart2js/impl_KeyboardEvent.darttemplate
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-/// @domName KeyboardEvent; @docsEditable true
-class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-
- factory $CLASSNAME(String type, Window view,
- [bool canBubble = true, bool cancelable = true,
- String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false,
- bool altKey = false, bool shiftKey = false, bool metaKey = false,
- bool altGraphKey = false]) {
- final e = document.$dom_createEvent("KeyboardEvent");
- e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier,
- keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
- return e;
- }
-
- /** @domName KeyboardEvent.initKeyboardEvent */
- void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable,
- Window view, String keyIdentifier, int keyLocation, bool ctrlKey,
- bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) {
- if (JS('bool', 'typeof(#.initKeyEvent) == "function"', this)) {
- // initKeyEvent is only in Firefox (instead of initKeyboardEvent). It has
- // a slightly different signature, and allows you to specify keyCode and
- // charCode as the last two arguments, but we just set them as the default
- // since they can't be specified in other browsers.
- JS('void', '#.initKeyEvent(#, #, #, #, #, #, #, #, 0, 0)', this,
- type, canBubble, cancelable, view,
- ctrlKey, altKey, shiftKey, metaKey);
- } else {
- // initKeyboardEvent is for all other browsers.
- JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #, #)', this,
- type, canBubble, cancelable, view, keyIdentifier, keyLocation,
- ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
- }
- }
-
- /** @domName KeyboardEvent.keyCode */
- int get keyCode => $dom_keyCode;
-
- /** @domName KeyboardEvent.charCode */
- int get charCode => $dom_charCode;
-$!MEMBERS
-}

Powered by Google App Engine
This is Rietveld 408576698