OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This header file contains declarations for system APIs and interfaces |
| 6 // that are either undocumented or are documented but not included in any |
| 7 // Platform SDK header files. |
| 8 #ifndef CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
| 9 #define CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
| 10 |
| 11 // This is an interface provided by the WebBrowser object. It allows us to |
| 12 // notify the browser of navigation events. MSDN documents this interface |
| 13 // (see http://msdn2.microsoft.com/en-us/library/aa752109(VS.85).aspx) |
| 14 // but this is not included in any Platform SDK header file. |
| 15 class __declspec(uuid("54A8F188-9EBD-4795-AD16-9B4945119636")) |
| 16 IWebBrowserEventsService : public IUnknown { |
| 17 public: |
| 18 STDMETHOD(FireBeforeNavigate2Event)(VARIANT_BOOL *cancel) = 0; |
| 19 STDMETHOD(FireNavigateComplete2Event)(VOID) = 0; |
| 20 STDMETHOD(FireDownloadBeginEvent)(VOID) = 0; |
| 21 STDMETHOD(FireDownloadCompleteEvent)(VOID) = 0; |
| 22 STDMETHOD(FireDocumentCompleteEvent)(VOID) = 0; |
| 23 }; |
| 24 |
| 25 // This interface is used in conjunction with the IWebBrowserEventsService |
| 26 // interface. The web browser queries us for this interface when we invoke |
| 27 // one of the IWebBrowserEventsService methods. This interface supplies the |
| 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) |
| 30 // but this is not included in any Platform SDK header file. |
| 31 class __declspec(uuid("{87CC5D04-EAFA-4833-9820-8F986530CC00}")) |
| 32 IWebBrowserEventsUrlService : public IUnknown { |
| 33 public: |
| 34 STDMETHOD(GetUrlForEvents)(BSTR *url) = 0; |
| 35 }; |
| 36 |
| 37 #endif // CHROME_FRAME_EXTRA_SYSTEM_APIS_H_ |
OLD | NEW |