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

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

Issue 12041090: Changed how Experimental annotation works. No longer is a constructor. (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
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,
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 void stepUp([int n]); 302 void stepUp([int n]);
303 } 303 }
304 304
305 /** 305 /**
306 * A date and time (year, month, day, hour, minute, second, fraction of a 306 * A date and time (year, month, day, hour, minute, second, fraction of a
307 * second) with the time zone set to UTC. 307 * second) with the time zone set to UTC.
308 * 308 *
309 * Use [supported] to check if this is supported on the current platform. 309 * Use [supported] to check if this is supported on the current platform.
310 */ 310 */
311 @SupportedBrowser(SupportedBrowser.CHROME, '25') 311 @SupportedBrowser(SupportedBrowser.CHROME, '25')
312 @Experimental() 312 @Experimental
313 abstract class DateTimeInputElement implements RangeInputElementBase { 313 abstract class DateTimeInputElement implements RangeInputElementBase {
314 factory DateTimeInputElement() => new InputElement(type: 'datetime'); 314 factory DateTimeInputElement() => new InputElement(type: 'datetime');
315 315
316 @DomName('HTMLInputElement.valueAsDate') 316 @DomName('HTMLInputElement.valueAsDate')
317 DateTime valueAsDate; 317 DateTime valueAsDate;
318 318
319 @DomName('HTMLInputElement.readOnly') 319 @DomName('HTMLInputElement.readOnly')
320 bool readOnly; 320 bool readOnly;
321 321
322 @DomName('HTMLInputElement.required') 322 @DomName('HTMLInputElement.required')
323 bool required; 323 bool required;
324 324
325 /// Returns true if this input type is supported on the current platform. 325 /// Returns true if this input type is supported on the current platform.
326 static bool get supported { 326 static bool get supported {
327 return (new InputElement(type: 'datetime')).type == 'datetime'; 327 return (new InputElement(type: 'datetime')).type == 'datetime';
328 } 328 }
329 } 329 }
330 330
331 /** 331 /**
332 * A date (year, month, day) with no time zone. 332 * A date (year, month, day) with no time zone.
333 * 333 *
334 * Use [supported] to check if this is supported on the current platform. 334 * Use [supported] to check if this is supported on the current platform.
335 */ 335 */
336 @SupportedBrowser(SupportedBrowser.CHROME, '25') 336 @SupportedBrowser(SupportedBrowser.CHROME, '25')
337 @Experimental() 337 @Experimental
338 abstract class DateInputElement implements RangeInputElementBase { 338 abstract class DateInputElement implements RangeInputElementBase {
339 factory DateInputElement() => new InputElement(type: 'date'); 339 factory DateInputElement() => new InputElement(type: 'date');
340 340
341 @DomName('HTMLInputElement.valueAsDate') 341 @DomName('HTMLInputElement.valueAsDate')
342 DateTime valueAsDate; 342 DateTime valueAsDate;
343 343
344 @DomName('HTMLInputElement.readOnly') 344 @DomName('HTMLInputElement.readOnly')
345 bool readOnly; 345 bool readOnly;
346 346
347 @DomName('HTMLInputElement.required') 347 @DomName('HTMLInputElement.required')
348 bool required; 348 bool required;
349 349
350 /// Returns true if this input type is supported on the current platform. 350 /// Returns true if this input type is supported on the current platform.
351 static bool get supported { 351 static bool get supported {
352 return (new InputElement(type: 'date')).type == 'date'; 352 return (new InputElement(type: 'date')).type == 'date';
353 } 353 }
354 } 354 }
355 355
356 /** 356 /**
357 * A date consisting of a year and a month with no time zone. 357 * A date consisting of a year and a month with no time zone.
358 * 358 *
359 * Use [supported] to check if this is supported on the current platform. 359 * Use [supported] to check if this is supported on the current platform.
360 */ 360 */
361 @SupportedBrowser(SupportedBrowser.CHROME, '25') 361 @SupportedBrowser(SupportedBrowser.CHROME, '25')
362 @Experimental() 362 @Experimental
363 abstract class MonthInputElement implements RangeInputElementBase { 363 abstract class MonthInputElement implements RangeInputElementBase {
364 factory MonthInputElement() => new InputElement(type: 'month'); 364 factory MonthInputElement() => new InputElement(type: 'month');
365 365
366 @DomName('HTMLInputElement.valueAsDate') 366 @DomName('HTMLInputElement.valueAsDate')
367 DateTime valueAsDate; 367 DateTime valueAsDate;
368 368
369 @DomName('HTMLInputElement.readOnly') 369 @DomName('HTMLInputElement.readOnly')
370 bool readOnly; 370 bool readOnly;
371 371
372 @DomName('HTMLInputElement.required') 372 @DomName('HTMLInputElement.required')
373 bool required; 373 bool required;
374 374
375 /// Returns true if this input type is supported on the current platform. 375 /// Returns true if this input type is supported on the current platform.
376 static bool get supported { 376 static bool get supported {
377 return (new InputElement(type: 'month')).type == 'month'; 377 return (new InputElement(type: 'month')).type == 'month';
378 } 378 }
379 } 379 }
380 380
381 /** 381 /**
382 * A date consisting of a week-year number and a week number with no time zone. 382 * A date consisting of a week-year number and a week number with no time zone.
383 * 383 *
384 * Use [supported] to check if this is supported on the current platform. 384 * Use [supported] to check if this is supported on the current platform.
385 */ 385 */
386 @SupportedBrowser(SupportedBrowser.CHROME, '25') 386 @SupportedBrowser(SupportedBrowser.CHROME, '25')
387 @Experimental() 387 @Experimental
388 abstract class WeekInputElement implements RangeInputElementBase { 388 abstract class WeekInputElement implements RangeInputElementBase {
389 factory WeekInputElement() => new InputElement(type: 'week'); 389 factory WeekInputElement() => new InputElement(type: 'week');
390 390
391 @DomName('HTMLInputElement.valueAsDate') 391 @DomName('HTMLInputElement.valueAsDate')
392 DateTime valueAsDate; 392 DateTime valueAsDate;
393 393
394 @DomName('HTMLInputElement.readOnly') 394 @DomName('HTMLInputElement.readOnly')
395 bool readOnly; 395 bool readOnly;
396 396
397 @DomName('HTMLInputElement.required') 397 @DomName('HTMLInputElement.required')
398 bool required; 398 bool required;
399 399
400 /// Returns true if this input type is supported on the current platform. 400 /// Returns true if this input type is supported on the current platform.
401 static bool get supported { 401 static bool get supported {
402 return (new InputElement(type: 'week')).type == 'week'; 402 return (new InputElement(type: 'week')).type == 'week';
403 } 403 }
404 } 404 }
405 405
406 /** 406 /**
407 * A time (hour, minute, seconds, fractional seconds) with no time zone. 407 * A time (hour, minute, seconds, fractional seconds) with no time zone.
408 * 408 *
409 * Use [supported] to check if this is supported on the current platform. 409 * Use [supported] to check if this is supported on the current platform.
410 */ 410 */
411 @SupportedBrowser(SupportedBrowser.CHROME) 411 @SupportedBrowser(SupportedBrowser.CHROME)
412 @Experimental() 412 @Experimental
413 abstract class TimeInputElement implements RangeInputElementBase { 413 abstract class TimeInputElement implements RangeInputElementBase {
414 factory TimeInputElement() => new InputElement(type: 'time'); 414 factory TimeInputElement() => new InputElement(type: 'time');
415 415
416 @DomName('HTMLInputElement.valueAsDate') 416 @DomName('HTMLInputElement.valueAsDate')
417 DateTime valueAsDate; 417 DateTime valueAsDate;
418 418
419 @DomName('HTMLInputElement.readOnly') 419 @DomName('HTMLInputElement.readOnly')
420 bool readOnly; 420 bool readOnly;
421 421
422 @DomName('HTMLInputElement.required') 422 @DomName('HTMLInputElement.required')
423 bool required; 423 bool required;
424 424
425 /// Returns true if this input type is supported on the current platform. 425 /// Returns true if this input type is supported on the current platform.
426 static bool get supported { 426 static bool get supported {
427 return (new InputElement(type: 'time')).type == 'time'; 427 return (new InputElement(type: 'time')).type == 'time';
428 } 428 }
429 } 429 }
430 430
431 /** 431 /**
432 * A date and time (year, month, day, hour, minute, second, fraction of a 432 * A date and time (year, month, day, hour, minute, second, fraction of a
433 * second) with no time zone. 433 * second) with no time zone.
434 * 434 *
435 * Use [supported] to check if this is supported on the current platform. 435 * Use [supported] to check if this is supported on the current platform.
436 */ 436 */
437 @SupportedBrowser(SupportedBrowser.CHROME, '25') 437 @SupportedBrowser(SupportedBrowser.CHROME, '25')
438 @Experimental() 438 @Experimental
439 abstract class LocalDateTimeInputElement implements RangeInputElementBase { 439 abstract class LocalDateTimeInputElement implements RangeInputElementBase {
440 factory LocalDateTimeInputElement() => 440 factory LocalDateTimeInputElement() =>
441 new InputElement(type: 'datetime-local'); 441 new InputElement(type: 'datetime-local');
442 442
443 @DomName('HTMLInputElement.readOnly') 443 @DomName('HTMLInputElement.readOnly')
444 bool readOnly; 444 bool readOnly;
445 445
446 @DomName('HTMLInputElement.required') 446 @DomName('HTMLInputElement.required')
447 bool required; 447 bool required;
448 448
449 /// Returns true if this input type is supported on the current platform. 449 /// Returns true if this input type is supported on the current platform.
450 static bool get supported { 450 static bool get supported {
451 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; 451 return (new InputElement(type: 'datetime-local')).type == 'datetime-local';
452 } 452 }
453 } 453 }
454 454
455 /** 455 /**
456 * A numeric editor control. 456 * A numeric editor control.
457 */ 457 */
458 @SupportedBrowser(SupportedBrowser.CHROME) 458 @SupportedBrowser(SupportedBrowser.CHROME)
459 @SupportedBrowser(SupportedBrowser.IE) 459 @SupportedBrowser(SupportedBrowser.IE)
460 @SupportedBrowser(SupportedBrowser.SAFARI) 460 @SupportedBrowser(SupportedBrowser.SAFARI)
461 @Experimental() 461 @Experimental
462 abstract class NumberInputElement implements RangeInputElementBase { 462 abstract class NumberInputElement implements RangeInputElementBase {
463 factory NumberInputElement() => new InputElement(type: 'number'); 463 factory NumberInputElement() => new InputElement(type: 'number');
464 464
465 @DomName('HTMLInputElement.placeholder') 465 @DomName('HTMLInputElement.placeholder')
466 String placeholder; 466 String placeholder;
467 467
468 @DomName('HTMLInputElement.readOnly') 468 @DomName('HTMLInputElement.readOnly')
469 bool readOnly; 469 bool readOnly;
470 470
471 @DomName('HTMLInputElement.required') 471 @DomName('HTMLInputElement.required')
472 bool required; 472 bool required;
473 473
474 /// Returns true if this input type is supported on the current platform. 474 /// Returns true if this input type is supported on the current platform.
475 static bool get supported { 475 static bool get supported {
476 return (new InputElement(type: 'number')).type == 'number'; 476 return (new InputElement(type: 'number')).type == 'number';
477 } 477 }
478 } 478 }
479 479
480 /** 480 /**
481 * Similar to [NumberInputElement] but the browser may provide more optimal 481 * Similar to [NumberInputElement] but the browser may provide more optimal
482 * styling (such as a slider control). 482 * styling (such as a slider control).
483 * 483 *
484 * Use [supported] to check if this is supported on the current platform. 484 * Use [supported] to check if this is supported on the current platform.
485 */ 485 */
486 @SupportedBrowser(SupportedBrowser.CHROME) 486 @SupportedBrowser(SupportedBrowser.CHROME)
487 @SupportedBrowser(SupportedBrowser.IE, '10') 487 @SupportedBrowser(SupportedBrowser.IE, '10')
488 @Experimental() 488 @Experimental
489 abstract class RangeInputElement implements RangeInputElementBase { 489 abstract class RangeInputElement implements RangeInputElementBase {
490 factory RangeInputElement() => new InputElement(type: 'range'); 490 factory RangeInputElement() => new InputElement(type: 'range');
491 491
492 /// Returns true if this input type is supported on the current platform. 492 /// Returns true if this input type is supported on the current platform.
493 static bool get supported { 493 static bool get supported {
494 return (new InputElement(type: 'range')).type == 'range'; 494 return (new InputElement(type: 'range')).type == 'range';
495 } 495 }
496 } 496 }
497 497
498 /** 498 /**
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 616 factory ResetButtonInputElement() => new InputElement(type: 'reset');
617 } 617 }
618 618
619 /** 619 /**
620 * A button, with no default behavior. 620 * A button, with no default behavior.
621 */ 621 */
622 abstract class ButtonInputElement implements InputElementBase { 622 abstract class ButtonInputElement implements InputElementBase {
623 factory ButtonInputElement() => new InputElement(type: 'button'); 623 factory ButtonInputElement() => new InputElement(type: 'button');
624 } 624 }
625 625
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698