JD2022-TU1/main/extern/Camcam/PlatformSDK/Include/webevnts.idl

89 lines
3.5 KiB
Text

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992-1998.
//
// File: webevnts.idl
//
// Contents: IWebBrowserEventsService and IWebBrowserUrlForEvents interfaces
//
// Classes:
//
// Functions:
//
// History: 02-01-05 KusumaV (Kusuma Vellanki) Created
//
//----------------------------------------------------------------------------
cpp_quote("//=--------------------------------------------------------------------------=")
cpp_quote("// webevnts.h")
cpp_quote("//=--------------------------------------------------------------------------=")
cpp_quote("// (C) Copyright 2005-2008 Microsoft Corporation. All Rights Reserved.")
cpp_quote("//")
cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
cpp_quote("// PARTICULAR PURPOSE.")
cpp_quote("//=--------------------------------------------------------------------------=")
cpp_quote("")
cpp_quote("#pragma comment(lib,\"uuid.lib\")")
cpp_quote("")
cpp_quote("//---------------------------------------------------------------------------=")
cpp_quote("// IWebBrowserEventsService and IWebBrowserUrlForEvents Interfaces.")
cpp_quote("")
import "objidl.idl";
import "oleidl.idl";
interface IWebBrowserEventsService;
interface IWebBrowserUrlForEvents;
//+----------------------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 2005-2008.
//
// Contents: IWebBrowserEventsService and IWebBrowserUrlForEvents interface definitions
//
//-----------------------------------------------------------------------------------------
cpp_quote("#ifndef _LPWEBEVNTS_DEFINED")
cpp_quote("#define _LPWEBEVNTS_DEFINED")
[
uuid(54A8F188-9EBD-4795-AD16-9B4945119636), // IID_IWebBrowserEventsService
helpstring("Web Browser Interface for firing web browser navigation events."),
helpcontext(0x0000),
hidden
]
interface IWebBrowserEventsService : IUnknown
{
[helpstring("Fires the BeforeNavigate2 webbrowser event and returns a bool to indicate if the navigation was cancelled."), helpcontext(0x0000)]
HRESULT FireBeforeNavigate2Event([out, retval]VARIANT_BOOL * pfCancel);
[helpstring("Fires the NavigateComplete2 webbrowser event. This causes the address bar to be updated to the current Url"), helpcontext(0x0000)]
HRESULT FireNavigateComplete2Event();
[helpstring("Fires the DownloadBegin webbrowser event."), helpcontext(0x0000)]
HRESULT FireDownloadBeginEvent();
[helpstring("Fires the NavigateComplete2 webbrowser event."), helpcontext(0x0000)]
HRESULT FireDownloadCompleteEvent();
[helpstring("Fires the NavigateComplete2 webbrowser event."), helpcontext(0x0000)]
HRESULT FireDocumentCompleteEvent();
}
[
uuid(87CC5D04-EAFA-4833-9820-8F986530CC00), // IID_IWebBrowserEventsUrlService
helpstring("Used to provide the current Url to fire web browser Navigation events"),
helpcontext(0x0000),
hidden
]
interface IWebBrowserEventsUrlService : IUnknown
{
[helpstring("Called to retrieve the current Url to fire the web browser navigation events."), helpcontext(0x0000)]
HRESULT GetUrlForEvents([out, retval] BSTR* pUrl);
}
cpp_quote("#endif")