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

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

Issue 18182010: Make html metadata follow the spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed DocsEditable, Experimental, Unstable Created 7 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)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements
8 HiddenInputElement, 8 HiddenInputElement,
9 SearchInputElement, 9 SearchInputElement,
10 TextInputElement, 10 TextInputElement,
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 @DomName('HTMLInputElement.stepUp') 301 @DomName('HTMLInputElement.stepUp')
302 void stepUp([int n]); 302 void stepUp([int n]);
303 } 303 }
304 304
305 /** 305 /**
306 * A date (year, month, day) with no time zone. 306 * A date (year, month, day) with no time zone.
307 * 307 *
308 * Use [supported] to check if this is supported on the current platform. 308 * Use [supported] to check if this is supported on the current platform.
309 */ 309 */
310 @SupportedBrowser(SupportedBrowser.CHROME, '25') 310 @SupportedBrowser(SupportedBrowser.CHROME, '25')
311 @Experimental 311 @Experimental()
312 abstract class DateInputElement implements RangeInputElementBase { 312 abstract class DateInputElement implements RangeInputElementBase {
313 factory DateInputElement() => new InputElement(type: 'date'); 313 factory DateInputElement() => new InputElement(type: 'date');
314 314
315 @DomName('HTMLInputElement.valueAsDate') 315 @DomName('HTMLInputElement.valueAsDate')
316 DateTime valueAsDate; 316 DateTime valueAsDate;
317 317
318 @DomName('HTMLInputElement.readOnly') 318 @DomName('HTMLInputElement.readOnly')
319 bool readOnly; 319 bool readOnly;
320 320
321 @DomName('HTMLInputElement.required') 321 @DomName('HTMLInputElement.required')
322 bool required; 322 bool required;
323 323
324 /// Returns true if this input type is supported on the current platform. 324 /// Returns true if this input type is supported on the current platform.
325 static bool get supported { 325 static bool get supported {
326 return (new InputElement(type: 'date')).type == 'date'; 326 return (new InputElement(type: 'date')).type == 'date';
327 } 327 }
328 } 328 }
329 329
330 /** 330 /**
331 * A date consisting of a year and a month with no time zone. 331 * A date consisting of a year and a month with no time zone.
332 * 332 *
333 * Use [supported] to check if this is supported on the current platform. 333 * Use [supported] to check if this is supported on the current platform.
334 */ 334 */
335 @SupportedBrowser(SupportedBrowser.CHROME, '25') 335 @SupportedBrowser(SupportedBrowser.CHROME, '25')
336 @Experimental 336 @Experimental()
337 abstract class MonthInputElement implements RangeInputElementBase { 337 abstract class MonthInputElement implements RangeInputElementBase {
338 factory MonthInputElement() => new InputElement(type: 'month'); 338 factory MonthInputElement() => new InputElement(type: 'month');
339 339
340 @DomName('HTMLInputElement.valueAsDate') 340 @DomName('HTMLInputElement.valueAsDate')
341 DateTime valueAsDate; 341 DateTime valueAsDate;
342 342
343 @DomName('HTMLInputElement.readOnly') 343 @DomName('HTMLInputElement.readOnly')
344 bool readOnly; 344 bool readOnly;
345 345
346 @DomName('HTMLInputElement.required') 346 @DomName('HTMLInputElement.required')
347 bool required; 347 bool required;
348 348
349 /// Returns true if this input type is supported on the current platform. 349 /// Returns true if this input type is supported on the current platform.
350 static bool get supported { 350 static bool get supported {
351 return (new InputElement(type: 'month')).type == 'month'; 351 return (new InputElement(type: 'month')).type == 'month';
352 } 352 }
353 } 353 }
354 354
355 /** 355 /**
356 * A date consisting of a week-year number and a week number with no time zone. 356 * A date consisting of a week-year number and a week number with no time zone.
357 * 357 *
358 * Use [supported] to check if this is supported on the current platform. 358 * Use [supported] to check if this is supported on the current platform.
359 */ 359 */
360 @SupportedBrowser(SupportedBrowser.CHROME, '25') 360 @SupportedBrowser(SupportedBrowser.CHROME, '25')
361 @Experimental 361 @Experimental()
362 abstract class WeekInputElement implements RangeInputElementBase { 362 abstract class WeekInputElement implements RangeInputElementBase {
363 factory WeekInputElement() => new InputElement(type: 'week'); 363 factory WeekInputElement() => new InputElement(type: 'week');
364 364
365 @DomName('HTMLInputElement.valueAsDate') 365 @DomName('HTMLInputElement.valueAsDate')
366 DateTime valueAsDate; 366 DateTime valueAsDate;
367 367
368 @DomName('HTMLInputElement.readOnly') 368 @DomName('HTMLInputElement.readOnly')
369 bool readOnly; 369 bool readOnly;
370 370
371 @DomName('HTMLInputElement.required') 371 @DomName('HTMLInputElement.required')
372 bool required; 372 bool required;
373 373
374 /// Returns true if this input type is supported on the current platform. 374 /// Returns true if this input type is supported on the current platform.
375 static bool get supported { 375 static bool get supported {
376 return (new InputElement(type: 'week')).type == 'week'; 376 return (new InputElement(type: 'week')).type == 'week';
377 } 377 }
378 } 378 }
379 379
380 /** 380 /**
381 * A time (hour, minute, seconds, fractional seconds) with no time zone. 381 * A time (hour, minute, seconds, fractional seconds) with no time zone.
382 * 382 *
383 * Use [supported] to check if this is supported on the current platform. 383 * Use [supported] to check if this is supported on the current platform.
384 */ 384 */
385 @SupportedBrowser(SupportedBrowser.CHROME) 385 @SupportedBrowser(SupportedBrowser.CHROME)
386 @Experimental 386 @Experimental()
387 abstract class TimeInputElement implements RangeInputElementBase { 387 abstract class TimeInputElement implements RangeInputElementBase {
388 factory TimeInputElement() => new InputElement(type: 'time'); 388 factory TimeInputElement() => new InputElement(type: 'time');
389 389
390 @DomName('HTMLInputElement.valueAsDate') 390 @DomName('HTMLInputElement.valueAsDate')
391 DateTime valueAsDate; 391 DateTime valueAsDate;
392 392
393 @DomName('HTMLInputElement.readOnly') 393 @DomName('HTMLInputElement.readOnly')
394 bool readOnly; 394 bool readOnly;
395 395
396 @DomName('HTMLInputElement.required') 396 @DomName('HTMLInputElement.required')
397 bool required; 397 bool required;
398 398
399 /// Returns true if this input type is supported on the current platform. 399 /// Returns true if this input type is supported on the current platform.
400 static bool get supported { 400 static bool get supported {
401 return (new InputElement(type: 'time')).type == 'time'; 401 return (new InputElement(type: 'time')).type == 'time';
402 } 402 }
403 } 403 }
404 404
405 /** 405 /**
406 * A date and time (year, month, day, hour, minute, second, fraction of a 406 * A date and time (year, month, day, hour, minute, second, fraction of a
407 * second) with no time zone. 407 * second) 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, '25') 411 @SupportedBrowser(SupportedBrowser.CHROME, '25')
412 @Experimental 412 @Experimental()
413 abstract class LocalDateTimeInputElement implements RangeInputElementBase { 413 abstract class LocalDateTimeInputElement implements RangeInputElementBase {
414 factory LocalDateTimeInputElement() => 414 factory LocalDateTimeInputElement() =>
415 new InputElement(type: 'datetime-local'); 415 new InputElement(type: 'datetime-local');
416 416
417 @DomName('HTMLInputElement.readOnly') 417 @DomName('HTMLInputElement.readOnly')
418 bool readOnly; 418 bool readOnly;
419 419
420 @DomName('HTMLInputElement.required') 420 @DomName('HTMLInputElement.required')
421 bool required; 421 bool required;
422 422
423 /// Returns true if this input type is supported on the current platform. 423 /// Returns true if this input type is supported on the current platform.
424 static bool get supported { 424 static bool get supported {
425 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; 425 return (new InputElement(type: 'datetime-local')).type == 'datetime-local';
426 } 426 }
427 } 427 }
428 428
429 /** 429 /**
430 * A numeric editor control. 430 * A numeric editor control.
431 */ 431 */
432 @SupportedBrowser(SupportedBrowser.CHROME) 432 @SupportedBrowser(SupportedBrowser.CHROME)
433 @SupportedBrowser(SupportedBrowser.IE) 433 @SupportedBrowser(SupportedBrowser.IE)
434 @SupportedBrowser(SupportedBrowser.SAFARI) 434 @SupportedBrowser(SupportedBrowser.SAFARI)
435 @Experimental 435 @Experimental()
436 abstract class NumberInputElement implements RangeInputElementBase { 436 abstract class NumberInputElement implements RangeInputElementBase {
437 factory NumberInputElement() => new InputElement(type: 'number'); 437 factory NumberInputElement() => new InputElement(type: 'number');
438 438
439 @DomName('HTMLInputElement.placeholder') 439 @DomName('HTMLInputElement.placeholder')
440 String placeholder; 440 String placeholder;
441 441
442 @DomName('HTMLInputElement.readOnly') 442 @DomName('HTMLInputElement.readOnly')
443 bool readOnly; 443 bool readOnly;
444 444
445 @DomName('HTMLInputElement.required') 445 @DomName('HTMLInputElement.required')
446 bool required; 446 bool required;
447 447
448 /// Returns true if this input type is supported on the current platform. 448 /// Returns true if this input type is supported on the current platform.
449 static bool get supported { 449 static bool get supported {
450 return (new InputElement(type: 'number')).type == 'number'; 450 return (new InputElement(type: 'number')).type == 'number';
451 } 451 }
452 } 452 }
453 453
454 /** 454 /**
455 * Similar to [NumberInputElement] but the browser may provide more optimal 455 * Similar to [NumberInputElement] but the browser may provide more optimal
456 * styling (such as a slider control). 456 * styling (such as a slider control).
457 * 457 *
458 * Use [supported] to check if this is supported on the current platform. 458 * Use [supported] to check if this is supported on the current platform.
459 */ 459 */
460 @SupportedBrowser(SupportedBrowser.CHROME) 460 @SupportedBrowser(SupportedBrowser.CHROME)
461 @SupportedBrowser(SupportedBrowser.IE, '10') 461 @SupportedBrowser(SupportedBrowser.IE, '10')
462 @Experimental 462 @Experimental()
463 abstract class RangeInputElement implements RangeInputElementBase { 463 abstract class RangeInputElement implements RangeInputElementBase {
464 factory RangeInputElement() => new InputElement(type: 'range'); 464 factory RangeInputElement() => new InputElement(type: 'range');
465 465
466 /// Returns true if this input type is supported on the current platform. 466 /// Returns true if this input type is supported on the current platform.
467 static bool get supported { 467 static bool get supported {
468 return (new InputElement(type: 'range')).type == 'range'; 468 return (new InputElement(type: 'range')).type == 'range';
469 } 469 }
470 } 470 }
471 471
472 /** 472 /**
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 factory ResetButtonInputElement() => new InputElement(type: 'reset'); 590 factory ResetButtonInputElement() => new InputElement(type: 'reset');
591 } 591 }
592 592
593 /** 593 /**
594 * A button, with no default behavior. 594 * A button, with no default behavior.
595 */ 595 */
596 abstract class ButtonInputElement implements InputElementBase { 596 abstract class ButtonInputElement implements InputElementBase {
597 factory ButtonInputElement() => new InputElement(type: 'button'); 597 factory ButtonInputElement() => new InputElement(type: 'button');
598 } 598 }
599 599
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698