IWebPreferencesPrivate.idl 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * Copyright (C) 2007, 2008, 2009 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. *
  8. * 1. Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
  14. * its contributors may be used to endorse or promote products derived
  15. * from this software without specific prior written permission.
  16. *
  17. * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
  18. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  19. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  20. * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
  21. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  22. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  23. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  24. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  25. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  26. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27. */
  28. #ifndef DO_NO_IMPORTS
  29. import "oaidl.idl";
  30. import "ocidl.idl";
  31. #endif
  32. [
  33. object,
  34. oleautomation,
  35. hidden,
  36. uuid(1380DE41-42CF-4170-9D5D-7840EDE5B36C),
  37. pointer_default(unique)
  38. ]
  39. interface IWebPreferencesPrivate : IUnknown
  40. {
  41. HRESULT setDeveloperExtrasEnabled([in] BOOL enabled);
  42. HRESULT developerExtrasEnabled([out, retval] BOOL* enabled);
  43. HRESULT setAutomaticallyDetectsCacheModel([in] BOOL automaticallyDetectsCacheModel);
  44. HRESULT automaticallyDetectsCacheModel([out, retval] BOOL* automaticallyDetectsCacheModel);
  45. HRESULT setAuthorAndUserStylesEnabled([in] BOOL enabled);
  46. HRESULT authorAndUserStylesEnabled([out, retval] BOOL* enabled);
  47. HRESULT inApplicationChromeMode([out, retval] BOOL *allowed);
  48. HRESULT setApplicationChromeMode([in] BOOL allowed);
  49. HRESULT setOfflineWebApplicationCacheEnabled([in] BOOL enabled);
  50. HRESULT offlineWebApplicationCacheEnabled([out, retval] BOOL *enabled);
  51. HRESULT localStorageDatabasePath([out, retval] BSTR* location);
  52. HRESULT setLocalStorageDatabasePath([in] BSTR location);
  53. HRESULT setShouldPaintNativeControls([in] BOOL shouldPaint);
  54. HRESULT shouldPaintNativeControls([out, retval] BOOL* enabled);
  55. HRESULT setDatabasesEnabled([in] BOOL enabled);
  56. HRESULT databasesEnabled([out, retval] BOOL *enabled);
  57. HRESULT setLocalStorageEnabled([in] BOOL enabled);
  58. HRESULT localStorageEnabled([out, retval] BOOL* enabled);
  59. HRESULT setFontSmoothingContrast([in] float contrast);
  60. HRESULT fontSmoothingContrast([out, retval] float* contrast);
  61. HRESULT isWebSecurityEnabled([out, retval] BOOL* enabled);
  62. HRESULT setWebSecurityEnabled([in] BOOL enabled);
  63. HRESULT allowUniversalAccessFromFileURLs([out, retval] BOOL *allowAccess);
  64. HRESULT setAllowUniversalAccessFromFileURLs([in] BOOL allowAccess);
  65. HRESULT isXSSAuditorEnabled([out, retval] BOOL *enabled);
  66. HRESULT setXSSAuditorEnabled([in] BOOL enabled);
  67. HRESULT isFrameFlatteningEnabled([out, retval] BOOL *enabled);
  68. HRESULT setFrameFlatteningEnabled([in] BOOL enabled);
  69. HRESULT experimentalNotificationsEnabled([out, retval] BOOL *enabled);
  70. HRESULT setExperimentalNotificationsEnabled([in] BOOL enabled);
  71. HRESULT setShouldUseHighResolutionTimers([in] BOOL useHighResolutionTimers);
  72. HRESULT shouldUseHighResolutionTimers([out, retval] BOOL* useHighResolutionTimers);
  73. // Used to set preference specified by a test via TestRunner.overridePreference(..).
  74. // Used by DumpRenderTree.
  75. HRESULT setPreferenceForTest([in] BSTR key, [in] BSTR value);
  76. HRESULT unused1();
  77. HRESULT unused2();
  78. HRESULT setAcceleratedCompositingEnabled([in] BOOL);
  79. HRESULT acceleratedCompositingEnabled([out, retval] BOOL*);
  80. HRESULT setCustomDragCursorsEnabled([in] BOOL);
  81. HRESULT customDragCursorsEnabled([out, retval] BOOL*);
  82. HRESULT allowFileAccessFromFileURLs([out, retval] BOOL *allowAccess);
  83. HRESULT setAllowFileAccessFromFileURLs([in] BOOL allowAccess);
  84. HRESULT setShowDebugBorders([in] BOOL);
  85. HRESULT showDebugBorders([out, retval] BOOL*);
  86. HRESULT setShowRepaintCounter([in] BOOL);
  87. HRESULT showRepaintCounter([out, retval] BOOL*);
  88. HRESULT javaScriptCanAccessClipboard([out, retval] BOOL *enabled);
  89. HRESULT setJavaScriptCanAccessClipboard([in] BOOL enabled);
  90. HRESULT isDNSPrefetchingEnabled([out, retval] BOOL *enabled);
  91. HRESULT setDNSPrefetchingEnabled([in] BOOL enabled);
  92. HRESULT hyperlinkAuditingEnabled(BOOL *hyperlinkAuditingEnabled);
  93. HRESULT setHyperlinkAuditingEnabled(BOOL hyperlinkAuditingEnabled);
  94. HRESULT setLoadsSiteIconsIgnoringImageLoadingPreference([in] BOOL enabled);
  95. HRESULT loadsSiteIconsIgnoringImageLoadingPreference([out, retval] BOOL* enabled);
  96. HRESULT setFullScreenEnabled([in] BOOL enabled);
  97. HRESULT isFullScreenEnabled([out, retval] BOOL* enabled);
  98. HRESULT setHixie76WebSocketProtocolEnabled([in] BOOL enabled);
  99. HRESULT hixie76WebSocketProtocolEnabled([out, retval] BOOL* enabled);
  100. HRESULT setMediaPlaybackRequiresUserGesture([in] BOOL);
  101. HRESULT mediaPlaybackRequiresUserGesture([out, retval] BOOL*);
  102. HRESULT setMediaPlaybackAllowsInline([in] BOOL);
  103. HRESULT mediaPlaybackAllowsInline([out, retval] BOOL*);
  104. HRESULT setShowsToolTipOverTruncatedText([in] BOOL);
  105. HRESULT showsToolTipOverTruncatedText([out, retval] BOOL*);
  106. HRESULT setShouldInvertColors([in] BOOL);
  107. HRESULT shouldInvertColors([out, retval] BOOL*);
  108. HRESULT setRequestAnimationFrameEnabled([in] BOOL);
  109. HRESULT requestAnimationFrameEnabled([out, retval] BOOL*);
  110. }