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

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

Issue 12310068: Removing DateTimeInputElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « tests/html/input_element_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 $CLASSNAME$EXTENDS implements 7 $(ANNOTATIONS)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 DateTimeInputElement,
16 DateInputElement, 15 DateInputElement,
17 MonthInputElement, 16 MonthInputElement,
18 WeekInputElement, 17 WeekInputElement,
19 TimeInputElement, 18 TimeInputElement,
20 LocalDateTimeInputElement, 19 LocalDateTimeInputElement,
21 NumberInputElement, 20 NumberInputElement,
22 RangeInputElement, 21 RangeInputElement,
23 CheckboxInputElement, 22 CheckboxInputElement,
24 RadioButtonInputElement, 23 RadioButtonInputElement,
25 FileUploadInputElement, 24 FileUploadInputElement,
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 num valueAsNumber; 295 num valueAsNumber;
297 296
298 @DomName('HTMLInputElement.stepDown') 297 @DomName('HTMLInputElement.stepDown')
299 void stepDown([int n]); 298 void stepDown([int n]);
300 299
301 @DomName('HTMLInputElement.stepUp') 300 @DomName('HTMLInputElement.stepUp')
302 void stepUp([int n]); 301 void stepUp([int n]);
303 } 302 }
304 303
305 /** 304 /**
306 * A date and time (year, month, day, hour, minute, second, fraction of a
307 * second) with the time zone set to UTC.
308 *
309 * Use [supported] to check if this is supported on the current platform.
310 */
311 @SupportedBrowser(SupportedBrowser.CHROME, '25')
312 @Experimental
313 abstract class DateTimeInputElement implements RangeInputElementBase {
314 factory DateTimeInputElement() => new InputElement(type: 'datetime');
315
316 @DomName('HTMLInputElement.valueAsDate')
317 DateTime valueAsDate;
318
319 @DomName('HTMLInputElement.readOnly')
320 bool readOnly;
321
322 @DomName('HTMLInputElement.required')
323 bool required;
324
325 /// Returns true if this input type is supported on the current platform.
326 static bool get supported {
327 return (new InputElement(type: 'datetime')).type == 'datetime';
328 }
329 }
330
331 /**
332 * A date (year, month, day) with no time zone. 305 * A date (year, month, day) with no time zone.
333 * 306 *
334 * Use [supported] to check if this is supported on the current platform. 307 * Use [supported] to check if this is supported on the current platform.
335 */ 308 */
336 @SupportedBrowser(SupportedBrowser.CHROME, '25') 309 @SupportedBrowser(SupportedBrowser.CHROME, '25')
337 @Experimental 310 @Experimental
338 abstract class DateInputElement implements RangeInputElementBase { 311 abstract class DateInputElement implements RangeInputElementBase {
339 factory DateInputElement() => new InputElement(type: 'date'); 312 factory DateInputElement() => new InputElement(type: 'date');
340 313
341 @DomName('HTMLInputElement.valueAsDate') 314 @DomName('HTMLInputElement.valueAsDate')
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 589 factory ResetButtonInputElement() => new InputElement(type: 'reset');
617 } 590 }
618 591
619 /** 592 /**
620 * A button, with no default behavior. 593 * A button, with no default behavior.
621 */ 594 */
622 abstract class ButtonInputElement implements InputElementBase { 595 abstract class ButtonInputElement implements InputElementBase {
623 factory ButtonInputElement() => new InputElement(type: 'button'); 596 factory ButtonInputElement() => new InputElement(type: 'button');
624 } 597 }
625 598
OLDNEW
« no previous file with comments | « tests/html/input_element_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698