Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: chrome_frame/chrome_tab.idl

Issue 4563001: Adding a privileged callback used in IE CF to check whether to show... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_npapi.cc ('k') | chrome_frame/np_browser_functions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file will be processed by the MIDL tool to 5 // This file will be processed by the MIDL tool to
6 // produce the type library (chrome_tab.tlb) and marshalling code. 6 // produce the type library (chrome_tab.tlb) and marshalling code.
7 7
8 #include "olectl.h" 8 #include "olectl.h"
9 import "oaidl.idl"; 9 import "oaidl.idl";
10 import "ocidl.idl"; 10 import "ocidl.idl";
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ] 88 ]
89 // Internal implementation interface. Not intended as an API. May change 89 // Internal implementation interface. Not intended as an API. May change
90 // frequently, don't treat this as frozen. 90 // frequently, don't treat this as frozen.
91 interface IChromeFrameInternal : IUnknown { 91 interface IChromeFrameInternal : IUnknown {
92 // This method is available only when the control is in privileged mode. 92 // This method is available only when the control is in privileged mode.
93 HRESULT getSessionId([out, retval] int* session_id); 93 HRESULT getSessionId([out, retval] int* session_id);
94 }; 94 };
95 95
96 [ 96 [
97 object, 97 object,
98 uuid(655A11E0-EF63-4fbe-9DF6-C182D2FCD6DC), 98 uuid(8AD52429-3CE0-4883-BC69-2DFA055D20D4),
99 oleautomation, 99 oleautomation,
100 nonextensible, 100 nonextensible,
101 hidden, 101 hidden,
102 ] 102 ]
103 interface IChromeFramePrivileged : IUnknown { 103 interface IChromeFramePrivileged : IUnknown {
104 // If the host returns false for wants_privileged, the control 104 // If the host returns false for wants_privileged, the control
105 // won't enable privileged mode. 105 // won't enable privileged mode.
106 HRESULT GetWantsPrivileged([out] boolean *wants_privileged); 106 HRESULT GetWantsPrivileged([out] boolean *wants_privileged);
107 // Extra arguments to supply to the Chrome instance. Returns S_FALSE when 107 // Extra arguments to supply to the Chrome instance. Returns S_FALSE when
108 // no extra arguments are needed. Always sets the output string to non-NULL. 108 // no extra arguments are needed. Always sets the output string to non-NULL.
109 HRESULT GetChromeExtraArguments([out] BSTR *args); 109 HRESULT GetChromeExtraArguments([out] BSTR *args);
110 // The profile name we want to use. 110 // The profile name we want to use.
111 HRESULT GetChromeProfileName([out] BSTR *profile_name); 111 HRESULT GetChromeProfileName([out] BSTR *profile_name);
112 // The comma-separated list of extension API functions you wish to automate. 112 // The comma-separated list of extension API functions you wish to automate.
113 // Return S_FALSE to leave the default, which is to not automate any 113 // Return S_FALSE to leave the default, which is to not automate any
114 // functions. 114 // functions.
115 HRESULT GetExtensionApisToAutomate([out] BSTR *extension_apis); 115 HRESULT GetExtensionApisToAutomate([out] BSTR *extension_apis);
116 // Called when an automation version mismatch occurs. Returns S_OK if
117 // a dialog should be showed to the user by this CF instance, S_FALSE if
118 // not.
119 HRESULT ShouldShowVersionMismatchDialog();
116 }; 120 };
117 121
118 // Expose this service to the ChromeFrame control to trigger privileged 122 // Expose this service to the ChromeFrame control to trigger privileged
119 // mode. If the control is in privileged mode, it will forward messages 123 // mode. If the control is in privileged mode, it will forward messages
120 // to the onmessage handler irrespective of origin. 124 // to the onmessage handler irrespective of origin.
121 cpp_quote("#define SID_ChromeFramePrivileged __uuidof(IChromeFramePrivileged)") 125 cpp_quote("#define SID_ChromeFramePrivileged __uuidof(IChromeFramePrivileged)")
122 126
123 typedef enum { 127 typedef enum {
124 CF_EVENT_DISPID_ONLOAD = 1, 128 CF_EVENT_DISPID_ONLOAD = 1,
125 CF_EVENT_DISPID_ONLOADERROR, 129 CF_EVENT_DISPID_ONLOADERROR,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 coclass ChromeFrame { 208 coclass ChromeFrame {
205 [default] interface IChromeFrame; 209 [default] interface IChromeFrame;
206 [default, source] dispinterface DIChromeFrameEvents; 210 [default, source] dispinterface DIChromeFrameEvents;
207 }; 211 };
208 212
209 [uuid(ECB3C477-1A0A-44bd-BB57-78F9EFE34FA7)] 213 [uuid(ECB3C477-1A0A-44bd-BB57-78F9EFE34FA7)]
210 coclass ChromeFrameBHO { 214 coclass ChromeFrameBHO {
211 [default] interface IUnknown; 215 [default] interface IUnknown;
212 }; 216 };
213 }; 217 };
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_npapi.cc ('k') | chrome_frame/np_browser_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698