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

https://bitbucket.org/ultra_iter/qt-vtl · IDL · 64 lines · 31 code · 11 blank · 22 comment · 1 complexity · 6ab0fe7351b0cf9bcab9e176d74deb37 MD5 · raw file

  1. /*
  2. * Copyright (C) 2006, 2007, 2008 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 [
  22. HasOverridingNameGetter
  23. ] HTMLDocument : Document {
  24. [Custom, NoCPPCustom] void open();
  25. void close();
  26. [Custom] void write(in DOMString text);
  27. [Custom] void writeln(in DOMString text);
  28. readonly attribute HTMLCollection embeds;
  29. readonly attribute HTMLCollection plugins;
  30. readonly attribute HTMLCollection scripts;
  31. // Extensions
  32. #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
  33. // FIXME: This should eventually be available (if they are wanted) for all languages.
  34. attribute [Custom, Deletable] HTMLAllCollection all;
  35. #endif
  36. void clear();
  37. void captureEvents();
  38. void releaseEvents();
  39. readonly attribute long width;
  40. readonly attribute long height;
  41. attribute [ConvertNullToNullString] DOMString dir;
  42. attribute [ConvertNullToNullString] DOMString designMode;
  43. readonly attribute DOMString compatMode;
  44. readonly attribute Element activeElement;
  45. boolean hasFocus();
  46. // Deprecated attributes
  47. attribute [ConvertNullToNullString] DOMString bgColor;
  48. attribute [ConvertNullToNullString] DOMString fgColor;
  49. attribute [ConvertNullToNullString] DOMString alinkColor;
  50. attribute [ConvertNullToNullString] DOMString linkColor;
  51. attribute [ConvertNullToNullString] DOMString vlinkColor;
  52. };
  53. }