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

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

Issue 409053002: Use @Native annotation on dart2js DOM native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements
8 HiddenInputElement, 8 HiddenInputElement,
9 SearchInputElement, 9 SearchInputElement,
10 TextInputElement, 10 TextInputElement,
11 UrlInputElement, 11 UrlInputElement,
12 TelephoneInputElement, 12 TelephoneInputElement,
13 EmailInputElement, 13 EmailInputElement,
14 PasswordInputElement, 14 PasswordInputElement,
15 DateInputElement, 15 DateInputElement,
16 MonthInputElement, 16 MonthInputElement,
17 WeekInputElement, 17 WeekInputElement,
18 TimeInputElement, 18 TimeInputElement,
19 LocalDateTimeInputElement, 19 LocalDateTimeInputElement,
20 NumberInputElement, 20 NumberInputElement,
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 $NATIVESPEC {
30 29
31 factory InputElement({String type}) { 30 factory InputElement({String type}) {
32 var e = document.createElement("input"); 31 var e = document.createElement("input");
33 if (type != null) { 32 if (type != null) {
34 try { 33 try {
35 // IE throws an exception for unknown types. 34 // IE throws an exception for unknown types.
36 e.type = type; 35 e.type = type;
37 } catch(_) {} 36 } catch(_) {}
38 } 37 }
39 return e; 38 return e;
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 abstract class ResetButtonInputElement implements InputElementBase { 588 abstract class ResetButtonInputElement implements InputElementBase {
590 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 589 factory ResetButtonInputElement() => new InputElement(type: 'reset');
591 } 590 }
592 591
593 /** 592 /**
594 * A button, with no default behavior. 593 * A button, with no default behavior.
595 */ 594 */
596 abstract class ButtonInputElement implements InputElementBase { 595 abstract class ButtonInputElement implements InputElementBase {
597 factory ButtonInputElement() => new InputElement(type: 'button'); 596 factory ButtonInputElement() => new InputElement(type: 'button');
598 } 597 }
599
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698