forked from yanw/App_win_iot_V2.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.9 KiB
64 lines
2.9 KiB
// Copyright (C) Microsoft Corporation. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import "oaidl.idl";
|
|
|
|
[uuid(79b85709-2a19-4645-9722-3cc51b86eda7), version(1.0)]
|
|
library WebView2Interop {
|
|
|
|
// Forward declarations
|
|
interface ICoreWebView2Interop;
|
|
|
|
// Enums and structs
|
|
// End of enums and structs
|
|
|
|
/// Interop interface for the CoreWebView2 WinRT object to allow WinRT end
|
|
/// developers to be able to use COM interfaces as parameters for some methods.
|
|
/// This interface is implemented by the Microsoft.Web.WebView2.Core.CoreWebView2
|
|
/// runtime class.
|
|
[uuid(912b34a7-d10b-49c4-af18-7cb7e604e01a), object, pointer_default(unique)]
|
|
interface ICoreWebView2Interop : IUnknown {
|
|
/// Add the provided host object to script running in the WebView with the
|
|
/// specified name.
|
|
/// See the documentation for ICoreWebView2::AddHostObjectToScript for more
|
|
/// information.
|
|
HRESULT AddHostObjectToScript([in] LPCWSTR name, [in] VARIANT* object);
|
|
}
|
|
|
|
/// Interop interface for the CoreWebView2CompositionController WinRT object to
|
|
/// allow WinRT end developers to be able to use the COM interfaces as parameters
|
|
/// for some methods.
|
|
/// This interface is implemented by the Microsoft.Web.WebView2.Core.CoreWebView2CompositionController
|
|
/// runtime class.
|
|
[uuid(8e9922ce-9c80-42e6-bad7-fcebf291a495), object, pointer_default(unique)]
|
|
interface ICoreWebView2CompositionControllerInterop : IUnknown {
|
|
/// Returns the UI Automation Provider for the WebView. See the documentation for
|
|
/// ICoreWebView2CompositionController::AutomationProvider for more information.
|
|
[propget] HRESULT AutomationProvider([out, retval] IUnknown** provider);
|
|
|
|
/// The RootVisualTarget is a visual in the hosting app's visual tree. This
|
|
/// visual is where the WebView2 will connect its visual tree.
|
|
/// See the documentation for ICoreWebView2CompositionController::RootVisualTarget
|
|
/// for more information.
|
|
[propget] HRESULT RootVisualTarget([out, retval] IUnknown** target);
|
|
/// Set the RootVisualTarget property.
|
|
[propput] HRESULT RootVisualTarget([in] IUnknown* target);
|
|
}
|
|
|
|
/// Interop interface for the CoreWebView2Environment WinRT object to allow
|
|
/// WinRT end developers to be able to use COM interfaces as parameters for some
|
|
/// methods.
|
|
/// This interface is implemented by the Microsoft.Web.WebView2.Core.CoreWebView2Environment
|
|
/// runtime class.
|
|
[uuid(ee503a63-c1e2-4fbf-8a4d-824e95f8bb13), object, pointer_default(unique)]
|
|
interface ICoreWebView2EnvironmentInterop : IUnknown {
|
|
/// Returns the UI Automation Provider for the
|
|
/// ICoreWebView2CompositionController that corresponds with the given HWND.
|
|
/// See the documentation for ICoreWebView2Environment::GetAutomationProviderForWindow
|
|
/// for more information.
|
|
HRESULT GetAutomationProviderForWindow([in] HWND hwnd,
|
|
[out, retval] IUnknown** provider);
|
|
}
|
|
|
|
}
|
|
|