| OLD | NEW |
| 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 header file contains declarations for system APIs and interfaces | 5 // This header file contains declarations for system APIs and interfaces |
| 6 // that are either undocumented or are documented but not included in any | 6 // that are either undocumented or are documented but not included in any |
| 7 // Platform SDK header files. | 7 // Platform SDK header files. |
| 8 #ifndef CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ | 8 #ifndef CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
| 9 #define CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ | 9 #define CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // one of the IWebBrowserEventsService methods. This interface supplies the | 27 // one of the IWebBrowserEventsService methods. This interface supplies the |
| 28 // WebBrowser with a URL to use for the events. MSDN documents this interface | 28 // WebBrowser with a URL to use for the events. MSDN documents this interface |
| 29 // (see http://msdn2.microsoft.com/en-us/library/aa752103(VS.85).aspx) | 29 // (see http://msdn2.microsoft.com/en-us/library/aa752103(VS.85).aspx) |
| 30 // but this is not included in any Platform SDK header file. | 30 // but this is not included in any Platform SDK header file. |
| 31 class __declspec(uuid("{87CC5D04-EAFA-4833-9820-8F986530CC00}")) | 31 class __declspec(uuid("{87CC5D04-EAFA-4833-9820-8F986530CC00}")) |
| 32 IWebBrowserEventsUrlService : public IUnknown { | 32 IWebBrowserEventsUrlService : public IUnknown { |
| 33 public: | 33 public: |
| 34 STDMETHOD(GetUrlForEvents)(BSTR* url) = 0; | 34 STDMETHOD(GetUrlForEvents)(BSTR* url) = 0; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // Web browser methods that are used by MSHTML when navigating or |
| 38 // initiating downloads. IE6. |
| 39 class __declspec(uuid("{3050F804-98B5-11CF-BB82-00AA00BDCE0B}")) |
| 40 IWebBrowserPriv : public IUnknown { |
| 41 public: |
| 42 STDMETHOD(NavigateWithBindCtx)(VARIANT* uri, VARIANT* flags, |
| 43 VARIANT* target_frame, VARIANT* post_data, |
| 44 VARIANT* headers, IBindCtx* bind_ctx, |
| 45 LPOLESTR url_fragment); |
| 46 STDMETHOD(OnClose)(); |
| 47 }; |
| 48 |
| 49 // Web browser methods that are used by MSHTML when navigating or |
| 50 // initiating downloads. IE7. |
| 51 class __declspec(uuid("{1AF32B6C-A3BA-48B9-B24E-8AA9C41F6ECD}")) |
| 52 IWebBrowserPriv2IE7 : public IUnknown { |
| 53 public: |
| 54 STDMETHOD(NavigateWithBindCtx2)(IUri* uri, VARIANT* flags, |
| 55 VARIANT* target_frame, VARIANT* post_data, |
| 56 VARIANT* headers, IBindCtx* bind_ctx, |
| 57 LPOLESTR url_fragment); |
| 58 STDMETHOD(SetBrowserFrameOptions)(DWORD opt1, DWORD opt2); |
| 59 STDMETHOD(DetachConnectionPoints)(); |
| 60 }; |
| 61 |
| 62 // Web browser methods that are used by MSHTML when navigating or |
| 63 // initiating downloads. IE8 uses IID {3ED72303-6FFC-4214-BA90-FAF1862DEC8A} |
| 64 // whereas the IID is {1AF32B6C-A3BA-48B9-B24E-8AA9C41F6ECD} in IE7 |
| 65 class __declspec(uuid("{3ED72303-6FFC-4214-BA90-FAF1862DEC8A}")) |
| 66 IWebBrowserPriv2IE8 : public IUnknown { |
| 67 public: |
| 68 STDMETHOD(NavigateWithBindCtx2)(IUri* uri, VARIANT* flags, |
| 69 VARIANT* target_frame, VARIANT* post_data, |
| 70 VARIANT* headers, IBindCtx* bind_ctx, |
| 71 LPOLESTR url_fragment); |
| 72 STDMETHOD(SetBrowserFrameOptions)(DWORD opt1, DWORD opt2); |
| 73 STDMETHOD(DetachConnectionPoints)(); |
| 74 STDMETHOD(GetProcessId)(DWORD* pid); |
| 75 STDMETHOD(CompatAttachEditEvents)(); |
| 76 STDMETHOD(HandleOpenOptions)(IUnknown* obj, BSTR bstr, int options); |
| 77 STDMETHOD(SetSearchTerm)(BSTR term); |
| 78 STDMETHOD(GetSearchTerm)(BSTR* term); |
| 79 STDMETHOD(GetCurrentDocument)(IDispatch** doc); |
| 80 }; |
| 81 |
| 37 // This interface is used to call FireBeforeNavigate with additional | 82 // This interface is used to call FireBeforeNavigate with additional |
| 38 // information like url. Available on IE7 onwards. | 83 // information like url. Available on IE7 onwards. |
| 39 // | 84 // |
| 40 // MSDN documents this interface see: | 85 // MSDN documents this interface see: |
| 41 // http://msdn.microsoft.com/en-us/library/aa770053(VS.85).aspx) | 86 // http://msdn.microsoft.com/en-us/library/aa770053(VS.85).aspx) |
| 42 // but this is not included in any Platform SDK header file. | 87 // but this is not included in any Platform SDK header file. |
| 43 interface __declspec(uuid("3050f801-98b5-11cf-bb82-00aa00bdce0b")) | 88 interface __declspec(uuid("3050f801-98b5-11cf-bb82-00aa00bdce0b")) |
| 44 IDocObjectService : public IUnknown { | 89 IDocObjectService : public IUnknown { |
| 45 STDMETHOD(FireBeforeNavigate2)(IDispatch* dispatch, | 90 STDMETHOD(FireBeforeNavigate2)(IDispatch* dispatch, |
| 46 LPCTSTR url, DWORD flags, LPCTSTR frame_name, BYTE* post_data, | 91 LPCTSTR url, DWORD flags, LPCTSTR frame_name, BYTE* post_data, |
| 47 DWORD post_data_len, LPCTSTR headers, BOOL play_nav_sound, | 92 DWORD post_data_len, LPCTSTR headers, BOOL play_nav_sound, |
| 48 BOOL* cancel) = 0; | 93 BOOL* cancel) = 0; |
| 49 STDMETHOD(FireNavigateComplete2)(IHTMLWindow2* html_window2, | 94 STDMETHOD(FireNavigateComplete2)(IHTMLWindow2* html_window2, |
| 50 DWORD flags) = 0; | 95 DWORD flags) = 0; |
| 51 STDMETHOD(FireDownloadBegin)() = 0; | 96 STDMETHOD(FireDownloadBegin)() = 0; |
| 52 STDMETHOD(FireDownloadComplete)() = 0; | 97 STDMETHOD(FireDownloadComplete)() = 0; |
| 53 STDMETHOD(FireDocumentComplete)(IHTMLWindow2* html_window2, DWORD flags) = 0; | 98 STDMETHOD(FireDocumentComplete)(IHTMLWindow2* html_window2, DWORD flags) = 0; |
| 54 STDMETHOD(UpdateDesktopComponent)(IHTMLWindow2* html_window2) = 0; | 99 STDMETHOD(UpdateDesktopComponent)(IHTMLWindow2* html_window2) = 0; |
| 55 STDMETHOD(GetPendingUrl)(BSTR* pending_url) = 0; | 100 STDMETHOD(GetPendingUrl)(BSTR* pending_url) = 0; |
| 56 STDMETHOD(ActiveElementChanged)(IHTMLElement* html_element) = 0; | 101 STDMETHOD(ActiveElementChanged)(IHTMLElement* html_element) = 0; |
| 57 STDMETHOD(GetUrlSearchComponent)(BSTR* search) = 0; | 102 STDMETHOD(GetUrlSearchComponent)(BSTR* search) = 0; |
| 58 STDMETHOD(IsErrorUrl)(LPCTSTR url, BOOL* is_error) = 0; | 103 STDMETHOD(IsErrorUrl)(LPCTSTR url, BOOL* is_error) = 0; |
| 59 }; | 104 }; |
| 60 | 105 |
| 61 #endif // CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ | 106 #endif // CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
| OLD | NEW |