IWebFramePrivate.idl 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
  14. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
  17. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  20. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  21. * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  23. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. #ifndef DO_NO_IMPORTS
  26. import "oaidl.idl";
  27. import "ocidl.idl";
  28. import "IWebFrame.idl";
  29. #endif
  30. interface IWebFrame;
  31. interface IWebScriptWorld;
  32. typedef enum {
  33. WebFrameLoadTypeStandard,
  34. WebFrameLoadTypeBack,
  35. WebFrameLoadTypeForward,
  36. WebFrameLoadTypeIndexedBackForward, // a multi-item hop in the backforward list
  37. WebFrameLoadTypeReload,
  38. WebFrameLoadTypeReloadAllowingStaleData,
  39. WebFrameLoadTypeSame, // user loads same URL again (but not reload button)
  40. WebFrameLoadTypeRedirectWithLockedBackForwardList,
  41. WebFrameLoadTypeReplace,
  42. WebFrameLoadTypeReloadFromOrigin,
  43. } WebFrameLoadType;
  44. [
  45. object,
  46. oleautomation,
  47. uuid(A1657D07-4881-4475-9D10-76548731D448),
  48. pointer_default(unique)
  49. ]
  50. interface IWebFramePrivate : IUnknown
  51. {
  52. HRESULT unused1([out, retval] BSTR*);
  53. HRESULT scrollOffset([out, retval] SIZE* offset);
  54. // FIXME: This shouldn't be needed once IWebDocumentView is implemented.
  55. HRESULT layout();
  56. HRESULT firstLayoutDone([out, retval] BOOL* result);
  57. HRESULT loadType([out, retval] WebFrameLoadType* type);
  58. HRESULT setInPrintingMode([in] BOOL value, [in] HDC printDC);
  59. HRESULT getPrintedPageCount([in] HDC printDC, [out, retval] UINT* pageCount);
  60. [local] HRESULT spoolPages([in] HDC printDC, [in] UINT startPage, [in] UINT endPage, [out, retval] void* ctx);
  61. HRESULT isFrameSet([out, retval] BOOL* result);
  62. HRESULT string([out, retval] BSTR* result);
  63. HRESULT size([out, retval] SIZE* size);
  64. HRESULT hasScrollBars([out, retval] BOOL* result);
  65. HRESULT contentBounds([out, retval] RECT* result);
  66. HRESULT frameBounds([out, retval] RECT* result);
  67. HRESULT isDescendantOfFrame([in] IWebFrame* ancestor, [out, retval] BOOL* result);
  68. HRESULT pendingFrameUnloadEventCount([out, retval] UINT* result);
  69. HRESULT unused2();
  70. HRESULT paintDocumentRectToContext([in] RECT rect, [in] OLE_HANDLE deviceContext);
  71. HRESULT elementDoesAutoComplete([in] IDOMElement* element, [out, retval] BOOL* result);
  72. HRESULT pauseAnimation([in] BSTR animationName, [in] IDOMNode* node, [in] double secondsFromNow, [out, retval] BOOL* animationWasRunning);
  73. HRESULT pauseTransition([in] BSTR propertyName, [in] IDOMNode* node, [in] double secondsFromNow, [out, retval] BOOL* transitionWasRunning);
  74. HRESULT numberOfActiveAnimations([out, retval] UINT* number);
  75. HRESULT isDisplayingStandaloneImage([out, retval] BOOL* result);
  76. HRESULT allowsFollowingLink([in] BSTR url, [out, retval] BOOL* result);
  77. [local] HRESULT stringByEvaluatingJavaScriptInScriptWorld([in] IWebScriptWorld*, [in] JSObjectRef globalObject, [in] BSTR script, [out, retval] BSTR* result);
  78. [local] JSGlobalContextRef globalContextForScriptWorld([in] IWebScriptWorld*);
  79. HRESULT unused3([in] BSTR, [out, retval] BSTR*);
  80. HRESULT visibleContentRect([out, retval] RECT*);
  81. HRESULT pageNumberForElementById([in] BSTR id, [in] float pageWidthInPixels, [in] float pageHeightInPixels, [out, retval] int* pageNumber);
  82. HRESULT numberOfPages([in] float pageWidthInPixels, [in] float pageHeightInPixels, [out, retval] int* pageNumber);
  83. HRESULT layerTreeAsText([out, retval] BSTR* result);
  84. HRESULT paintScrollViewRectToContextAtPoint([in] RECT rect, [in] POINT pt, [in] OLE_HANDLE deviceContext);
  85. HRESULT renderTreeAsExternalRepresentation([in] BOOL forPrinting, [out, retval] BSTR* result);
  86. HRESULT suspendAnimations();
  87. HRESULT resumeAnimations();
  88. HRESULT loadPlainTextString([in] BSTR string, [in] BSTR url);
  89. HRESULT clearOpener();
  90. HRESULT setTextDirection([in] BSTR direction);
  91. }