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

Side by Side Diff: tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate

Issue 24084004: Exposing document.createElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements 7 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements
8 HiddenInputElement, 8 HiddenInputElement,
9 SearchInputElement, 9 SearchInputElement,
10 TextInputElement, 10 TextInputElement,
(...skipping 11 matching lines...) Expand all
22 CheckboxInputElement, 22 CheckboxInputElement,
23 RadioButtonInputElement, 23 RadioButtonInputElement,
24 FileUploadInputElement, 24 FileUploadInputElement,
25 SubmitButtonInputElement, 25 SubmitButtonInputElement,
26 ImageButtonInputElement, 26 ImageButtonInputElement,
27 ResetButtonInputElement, 27 ResetButtonInputElement,
28 ButtonInputElement 28 ButtonInputElement
29 $NATIVESPEC { 29 $NATIVESPEC {
30 30
31 factory InputElement({String type}) { 31 factory InputElement({String type}) {
32 var e = document.$dom_createElement("input"); 32 var e = document.createElement("input");
33 if (type != null) { 33 if (type != null) {
34 try { 34 try {
35 // IE throws an exception for unknown types. 35 // IE throws an exception for unknown types.
36 e.type = type; 36 e.type = type;
37 } catch(_) {} 37 } catch(_) {}
38 } 38 }
39 return e; 39 return e;
40 } 40 }
41 41
42 $!MEMBERS 42 $!MEMBERS
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 590 factory ResetButtonInputElement() => new InputElement(type: 'reset');
591 } 591 }
592 592
593 /** 593 /**
594 * A button, with no default behavior. 594 * A button, with no default behavior.
595 */ 595 */
596 abstract class ButtonInputElement implements InputElementBase { 596 abstract class ButtonInputElement implements InputElementBase {
597 factory ButtonInputElement() => new InputElement(type: 'button'); 597 factory ButtonInputElement() => new InputElement(type: 'button');
598 } 598 }
599 599
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698