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

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

Issue 1894713002: Strong html (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: ptal Created 4 years, 8 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
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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements
8 HiddenInputElement, 8 HiddenInputElement,
9 SearchInputElement, 9 SearchInputElement,
10 TextInputElement, 10 TextInputElement,
(...skipping 10 matching lines...) Expand all
21 RangeInputElement, 21 RangeInputElement,
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 29
30 factory InputElement({String type}) { 30 factory InputElement({String type}) {
31 var e = document.createElement("input"); 31 InputElement e = document.createElement("input");
32 if (type != null) { 32 if (type != null) {
33 try { 33 try {
34 // IE throws an exception for unknown types. 34 // IE throws an exception for unknown types.
35 e.type = type; 35 e.type = type;
36 } catch(_) {} 36 } catch(_) {}
37 } 37 }
38 return e; 38 return e;
39 } 39 }
40 40
41 $!MEMBERS 41 $!MEMBERS
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 abstract class ResetButtonInputElement implements InputElementBase { 588 abstract class ResetButtonInputElement implements InputElementBase {
589 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 589 factory ResetButtonInputElement() => new InputElement(type: 'reset');
590 } 590 }
591 591
592 /** 592 /**
593 * A button, with no default behavior. 593 * A button, with no default behavior.
594 */ 594 */
595 abstract class ButtonInputElement implements InputElementBase { 595 abstract class ButtonInputElement implements InputElementBase {
596 factory ButtonInputElement() => new InputElement(type: 'button'); 596 factory ButtonInputElement() => new InputElement(type: 'button');
597 } 597 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698