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

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

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 /// @domName $DOMNAME 7 /// @domName $DOMNAME
8 class $CLASSNAME$EXTENDS implements 8 class $CLASSNAME$EXTENDS implements
9 HiddenInputElement, 9 HiddenInputElement,
10 SearchInputElement, 10 SearchInputElement,
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 * second) with the time zone set to UTC. 309 * second) with the time zone set to UTC.
310 * 310 *
311 * Use [supported] to check if this is supported on the current platform. 311 * Use [supported] to check if this is supported on the current platform.
312 */ 312 */
313 @SupportedBrowser(SupportedBrowser.CHROME, '25') 313 @SupportedBrowser(SupportedBrowser.CHROME, '25')
314 @Experimental() 314 @Experimental()
315 abstract class DateTimeInputElement implements RangeInputElementBase { 315 abstract class DateTimeInputElement implements RangeInputElementBase {
316 factory DateTimeInputElement() => new InputElement(type: 'datetime'); 316 factory DateTimeInputElement() => new InputElement(type: 'datetime');
317 317
318 /// @domName HTMLInputElement.valueAsDate 318 /// @domName HTMLInputElement.valueAsDate
319 Date valueAsDate; 319 DateTime valueAsDate;
320 320
321 /// @domName HTMLInputElement.readOnly 321 /// @domName HTMLInputElement.readOnly
322 bool readOnly; 322 bool readOnly;
323 323
324 /// @domName HTMLInputElement.required 324 /// @domName HTMLInputElement.required
325 bool required; 325 bool required;
326 326
327 /// Returns true if this input type is supported on the current platform. 327 /// Returns true if this input type is supported on the current platform.
328 static bool get supported { 328 static bool get supported {
329 return (new InputElement(type: 'datetime')).type == 'datetime'; 329 return (new InputElement(type: 'datetime')).type == 'datetime';
330 } 330 }
331 } 331 }
332 332
333 /** 333 /**
334 * A date (year, month, day) with no time zone. 334 * A date (year, month, day) with no time zone.
335 * 335 *
336 * Use [supported] to check if this is supported on the current platform. 336 * Use [supported] to check if this is supported on the current platform.
337 */ 337 */
338 @SupportedBrowser(SupportedBrowser.CHROME, '25') 338 @SupportedBrowser(SupportedBrowser.CHROME, '25')
339 @Experimental() 339 @Experimental()
340 abstract class DateInputElement implements RangeInputElementBase { 340 abstract class DateInputElement implements RangeInputElementBase {
341 factory DateInputElement() => new InputElement(type: 'date'); 341 factory DateInputElement() => new InputElement(type: 'date');
342 342
343 /// @domName HTMLInputElement.valueAsDate 343 /// @domName HTMLInputElement.valueAsDate
344 Date valueAsDate; 344 DateTime valueAsDate;
345 345
346 /// @domName HTMLInputElement.readOnly 346 /// @domName HTMLInputElement.readOnly
347 bool readOnly; 347 bool readOnly;
348 348
349 /// @domName HTMLInputElement.required 349 /// @domName HTMLInputElement.required
350 bool required; 350 bool required;
351 351
352 /// Returns true if this input type is supported on the current platform. 352 /// Returns true if this input type is supported on the current platform.
353 static bool get supported { 353 static bool get supported {
354 return (new InputElement(type: 'date')).type == 'date'; 354 return (new InputElement(type: 'date')).type == 'date';
355 } 355 }
356 } 356 }
357 357
358 /** 358 /**
359 * A date consisting of a year and a month with no time zone. 359 * A date consisting of a year and a month with no time zone.
360 * 360 *
361 * Use [supported] to check if this is supported on the current platform. 361 * Use [supported] to check if this is supported on the current platform.
362 */ 362 */
363 @SupportedBrowser(SupportedBrowser.CHROME, '25') 363 @SupportedBrowser(SupportedBrowser.CHROME, '25')
364 @Experimental() 364 @Experimental()
365 abstract class MonthInputElement implements RangeInputElementBase { 365 abstract class MonthInputElement implements RangeInputElementBase {
366 factory MonthInputElement() => new InputElement(type: 'month'); 366 factory MonthInputElement() => new InputElement(type: 'month');
367 367
368 /// @domName HTMLInputElement.valueAsDate 368 /// @domName HTMLInputElement.valueAsDate
369 Date valueAsDate; 369 DateTime valueAsDate;
370 370
371 /// @domName HTMLInputElement.readOnly 371 /// @domName HTMLInputElement.readOnly
372 bool readOnly; 372 bool readOnly;
373 373
374 /// @domName HTMLInputElement.required 374 /// @domName HTMLInputElement.required
375 bool required; 375 bool required;
376 376
377 /// Returns true if this input type is supported on the current platform. 377 /// Returns true if this input type is supported on the current platform.
378 static bool get supported { 378 static bool get supported {
379 return (new InputElement(type: 'month')).type == 'month'; 379 return (new InputElement(type: 'month')).type == 'month';
380 } 380 }
381 } 381 }
382 382
383 /** 383 /**
384 * A date consisting of a week-year number and a week number with no time zone. 384 * A date consisting of a week-year number and a week number with no time zone.
385 * 385 *
386 * Use [supported] to check if this is supported on the current platform. 386 * Use [supported] to check if this is supported on the current platform.
387 */ 387 */
388 @SupportedBrowser(SupportedBrowser.CHROME, '25') 388 @SupportedBrowser(SupportedBrowser.CHROME, '25')
389 @Experimental() 389 @Experimental()
390 abstract class WeekInputElement implements RangeInputElementBase { 390 abstract class WeekInputElement implements RangeInputElementBase {
391 factory WeekInputElement() => new InputElement(type: 'week'); 391 factory WeekInputElement() => new InputElement(type: 'week');
392 392
393 /// @domName HTMLInputElement.valueAsDate 393 /// @domName HTMLInputElement.valueAsDate
394 Date valueAsDate; 394 DateTime valueAsDate;
395 395
396 /// @domName HTMLInputElement.readOnly 396 /// @domName HTMLInputElement.readOnly
397 bool readOnly; 397 bool readOnly;
398 398
399 /// @domName HTMLInputElement.required 399 /// @domName HTMLInputElement.required
400 bool required; 400 bool required;
401 401
402 /// Returns true if this input type is supported on the current platform. 402 /// Returns true if this input type is supported on the current platform.
403 static bool get supported { 403 static bool get supported {
404 return (new InputElement(type: 'week')).type == 'week'; 404 return (new InputElement(type: 'week')).type == 'week';
405 } 405 }
406 } 406 }
407 407
408 /** 408 /**
409 * A time (hour, minute, seconds, fractional seconds) with no time zone. 409 * A time (hour, minute, seconds, fractional seconds) with no time zone.
410 * 410 *
411 * Use [supported] to check if this is supported on the current platform. 411 * Use [supported] to check if this is supported on the current platform.
412 */ 412 */
413 @SupportedBrowser(SupportedBrowser.CHROME) 413 @SupportedBrowser(SupportedBrowser.CHROME)
414 @Experimental() 414 @Experimental()
415 abstract class TimeInputElement implements RangeInputElementBase { 415 abstract class TimeInputElement implements RangeInputElementBase {
416 factory TimeInputElement() => new InputElement(type: 'time'); 416 factory TimeInputElement() => new InputElement(type: 'time');
417 417
418 /// @domName HTMLInputElement.valueAsDate 418 /// @domName HTMLInputElement.valueAsDate
419 Date valueAsDate; 419 DateTime valueAsDate;
420 420
421 /// @domName HTMLInputElement.readOnly 421 /// @domName HTMLInputElement.readOnly
422 bool readOnly; 422 bool readOnly;
423 423
424 /// @domName HTMLInputElement.required 424 /// @domName HTMLInputElement.required
425 bool required; 425 bool required;
426 426
427 /// Returns true if this input type is supported on the current platform. 427 /// Returns true if this input type is supported on the current platform.
428 static bool get supported { 428 static bool get supported {
429 return (new InputElement(type: 'time')).type == 'time'; 429 return (new InputElement(type: 'time')).type == 'time';
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 618 factory ResetButtonInputElement() => new InputElement(type: 'reset');
619 } 619 }
620 620
621 /** 621 /**
622 * A button, with no default behavior. 622 * A button, with no default behavior.
623 */ 623 */
624 abstract class ButtonInputElement implements InputElementBase { 624 abstract class ButtonInputElement implements InputElementBase {
625 factory ButtonInputElement() => new InputElement(type: 'button'); 625 factory ButtonInputElement() => new InputElement(type: 'button');
626 } 626 }
627 627
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698