/src/3rdparty/webkit/Source/WebCore/html/HTMLInputElement.idl

https://bitbucket.org/ultra_iter/qt-vtl · IDL · 112 lines · 79 code · 11 blank · 22 comment · 7 complexity · 6cd6660bdd57ea0e5236b7696ae2351d MD5 · raw file

  1. /*
  2. * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
  3. * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public License
  16. * along with this library; see the file COPYING.LIB. If not, write to
  17. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301, USA.
  19. */
  20. module html {
  21. interface HTMLInputElement : HTMLElement {
  22. attribute [ConvertNullToNullString] DOMString defaultValue;
  23. attribute [Reflect=checked] boolean defaultChecked;
  24. readonly attribute HTMLFormElement form;
  25. attribute [Reflect, URL] DOMString formAction;
  26. attribute [Reflect] DOMString formEnctype;
  27. attribute [Reflect] DOMString formMethod;
  28. attribute [Reflect] boolean formNoValidate;
  29. attribute [Reflect] DOMString formTarget;
  30. readonly attribute ValidityState validity;
  31. attribute [Reflect] DOMString accept;
  32. attribute [Reflect] DOMString accessKey;
  33. attribute [Reflect] DOMString align;
  34. attribute [Reflect] DOMString alt;
  35. attribute boolean checked;
  36. attribute [Reflect] boolean disabled;
  37. attribute [Reflect] boolean autofocus;
  38. #if defined(ENABLE_DATALIST) && ENABLE_DATALIST
  39. readonly attribute HTMLElement list;
  40. #endif
  41. attribute [Reflect] DOMString max;
  42. attribute long maxLength setter raises(DOMException);
  43. attribute [Reflect] DOMString min;
  44. attribute [Reflect] boolean multiple;
  45. #if defined(ENABLE_DIRECTORY_UPLOAD) && ENABLE_DIRECTORY_UPLOAD
  46. attribute [Reflect] boolean webkitdirectory;
  47. #endif
  48. attribute [Reflect] DOMString name;
  49. attribute [Reflect] DOMString pattern;
  50. attribute [Reflect] DOMString placeholder;
  51. attribute [Reflect] boolean readOnly;
  52. attribute [Reflect] boolean required;
  53. #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
  54. attribute [ConvertToString] DOMString size; // DOM level 2 changed this to a long, but our existing API is a string
  55. #else
  56. // FIXME: The spec says this should be a long, not an unsigned long.
  57. attribute unsigned long size; // Changed string -> long as part of DOM level 2
  58. #endif
  59. attribute [Reflect, URL] DOMString src;
  60. attribute [Reflect] DOMString step;
  61. attribute [ConvertNullToNullString] DOMString type; // readonly dropped as part of DOM level 2
  62. attribute [Reflect] DOMString useMap;
  63. attribute [ConvertNullToNullString] DOMString value;
  64. #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
  65. attribute Date valueAsDate setter raises(DOMException);
  66. #endif
  67. attribute double valueAsNumber setter raises(DOMException);
  68. #if defined(ENABLE_DATALIST) && ENABLE_DATALIST
  69. readonly attribute HTMLOptionElement selectedOption;
  70. #endif
  71. attribute [Reflect] boolean incremental;
  72. void stepUp(in [Optional] long n) raises(DOMException);
  73. void stepDown(in [Optional] long n) raises(DOMException);
  74. readonly attribute boolean willValidate;
  75. readonly attribute DOMString validationMessage;
  76. boolean checkValidity();
  77. void setCustomValidity(in [ConvertUndefinedOrNullToNullString] DOMString error);
  78. void select();
  79. void click();
  80. #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
  81. void setValueForUser(in [ConvertNullToNullString] DOMString value);
  82. #endif
  83. // WinIE extension:
  84. attribute boolean indeterminate;
  85. attribute [Custom] long selectionStart;
  86. attribute [Custom] long selectionEnd;
  87. [Custom] void setSelectionRange(in long start, in long end);
  88. #if defined(LANGUAGE_OBJECTIVE_C)
  89. // Objective-C extension:
  90. readonly attribute DOMString altDisplayString;
  91. readonly attribute URL absoluteImageURL;
  92. #endif
  93. readonly attribute FileList files;
  94. readonly attribute NodeList labels;
  95. #if defined(ENABLE_INPUT_SPEECH) && ENABLE_INPUT_SPEECH
  96. attribute [Reflect, EnabledAtRuntime] boolean webkitSpeech;
  97. attribute [Reflect, EnabledAtRuntime] boolean webkitGrammar;
  98. attribute [DontEnum] EventListener onwebkitspeechchange;
  99. #endif
  100. };
  101. }