OLD | NEW |
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Date 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 Date 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 Date 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 Date 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 Date 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'; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |