IWebUIDelegatePrivate.idl 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * Copyright (C) 2006, 2007, 2008, 2009, 2010 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 "IWebGeolocationPolicyListener.idl";
  29. import "IWebSecurityOrigin.idl";
  30. import "IWebView.idl";
  31. #endif
  32. cpp_quote("#define WebEmbeddedViewAttributesKey TEXT(\"WebEmbeddedViewAttributesKey\")")
  33. cpp_quote("#define WebEmbeddedViewBaseURLKey TEXT(\"WebEmbeddedViewBaseURLKey\")")
  34. cpp_quote("#define WebEmbeddedViewContainingElementKey TEXT(\"WebEmbeddedViewContainingElementKey\")")
  35. cpp_quote("#define WebEmbeddedViewMIMETypeKey TEXT(\"WebEmbeddedViewMIMETypeKey\")")
  36. interface IWebEmbeddedView;
  37. interface IWebFrame;
  38. interface IWebGeolocationPolicyListener;
  39. interface IWebSecurityOrigin;
  40. interface IWebView;
  41. [
  42. object,
  43. oleautomation,
  44. uuid(df3b4283-6868-4a1f-97f6-baf0b33f239c),
  45. pointer_default(unique)
  46. ]
  47. interface IWebUIDelegatePrivate : IUnknown
  48. {
  49. HRESULT unused1();
  50. HRESULT unused2();
  51. HRESULT webViewScrolled([in] IWebView* sender);
  52. HRESULT webViewAddMessageToConsole([in] IWebView* sender, [in] BSTR message, [in] int lineNumber, [in] BSTR url, [in] BOOL isError);
  53. HRESULT webViewShouldInterruptJavaScript([in] IWebView* sender, [out, retval] BOOL* result);
  54. HRESULT webViewReceivedFocus([in] IWebView* sender);
  55. HRESULT webViewLostFocus([in] IWebView* sender, [in] OLE_HANDLE loseFocusToHWnd);
  56. HRESULT doDragDrop([in] IWebView* sender, [in] IDataObject* dataObject, [in] IDropSource* dropSource, [in] DWORD okEffect, [out, retval] DWORD* performedEffect);
  57. HRESULT webViewGetDlgCode([in] IWebView* sender, [in] UINT keyCode, [out, retval] LONG_PTR* code);
  58. HRESULT webViewPainted([in] IWebView* sender);
  59. HRESULT exceededDatabaseQuota([in] IWebView* sender, [in] IWebFrame* frame, [in] IWebSecurityOrigin* origin, [in] BSTR databaseIdentifier);
  60. HRESULT embeddedViewWithArguments([in] IWebView* sender, [in] IWebFrame* frame, [in] IPropertyBag* arguments, [out, retval] IWebEmbeddedView** view);
  61. HRESULT unused3();
  62. HRESULT webViewClosing([in] IWebView* sender);
  63. HRESULT webViewSetCursor([in] IWebView* sender, [in] OLE_HANDLE cursor);
  64. HRESULT webViewDidInvalidate([in] IWebView* sender);
  65. }
  66. cpp_quote("#define WebWindowFeaturesXKey L\"x\"")
  67. cpp_quote("#define WebWindowFeaturesYKey L\"y\"")
  68. cpp_quote("#define WebWindowFeaturesWidthKey L\"width\"")
  69. cpp_quote("#define WebWindowFeaturesHeightKey L\"height\"")
  70. cpp_quote("#define WebWindowFeaturesMenuBarVisibleKey L\"menuBarVisible\"")
  71. cpp_quote("#define WebWindowFeaturesStatusBarVisibleKey L\"statusBarVisible\"")
  72. cpp_quote("#define WebWindowFeaturesToolBarVisibleKey L\"toolBarVisible\"")
  73. cpp_quote("#define WebWindowFeaturesScrollbarsVisibleKey L\"scrollbarsVisible\"")
  74. cpp_quote("#define WebWindowFeaturesResizableKey L\"resizable\"")
  75. cpp_quote("#define WebWindowFeaturesFullscreenKey L\"fullscreen\"")
  76. cpp_quote("#define WebWindowFeaturesDialogKey L\"dialog\"")
  77. [
  78. object,
  79. oleautomation,
  80. uuid(b7d6a98e-9c4f-43f2-b6a7-0975a0b18421),
  81. pointer_default(unique)
  82. ]
  83. interface IWebUIDelegatePrivate2 : IWebUIDelegatePrivate
  84. {
  85. // This function obsoletes IWebUIDelegate::createWebViewWithRequest and
  86. // IWebUIDelegate::createModalDialog. Clients should determine whether to create a modal dialog
  87. // based on whether WebWindowFeaturesDialogKey returns a TRUE value from the windowFeatures
  88. // IPropertyBag. The keys of the windowFeatures IPropertyBag are the WebWindowFeatures*Key
  89. // strings above.
  90. HRESULT createWebViewWithRequest([in] IWebView* sender, [in] IWebURLRequest* request, [in] IPropertyBag* windowFeatures, [out, retval] IWebView** newWebView);
  91. HRESULT drawBackground([in] IWebView* sender, [in] OLE_HANDLE hdc, [in] const RECT* dirtyRect);
  92. HRESULT decidePolicyForGeolocationRequest([in] IWebView* sender, [in] IWebFrame* frame, [in] IWebSecurityOrigin* origin, [in] IWebGeolocationPolicyListener* listener);
  93. }
  94. [
  95. object,
  96. oleautomation,
  97. uuid(e9834891-233b-48a0-984b-8f8a19abdd0f),
  98. pointer_default(unique)
  99. ]
  100. interface IWebUIDelegatePrivate3 : IWebUIDelegatePrivate2
  101. {
  102. HRESULT didPressMissingPluginButton([in] IDOMElement*);
  103. }
  104. [
  105. object,
  106. oleautomation,
  107. uuid(944e8e46-6d63-450f-b381-c5d68b80b727),
  108. pointer_default(unique)
  109. ]
  110. interface IWebUIDelegatePrivate4 : IWebUIDelegatePrivate3
  111. {
  112. HRESULT supportsFullScreenForElement([in] IDOMElement*, [in] BOOL withKeyboard, [out, retval] BOOL* supports);
  113. HRESULT enterFullScreenForElement([in] IDOMElement*);
  114. HRESULT exitFullScreenForElement([in] IDOMElement*);
  115. }