Nui
Classes | Macros | Typedefs
webview2_environment_options.hpp File Reference
#include <objbase.h>
#include "wrl/implements.h"
#include "webview2.h"
Include dependency graph for webview2_environment_options.hpp:

Go to the source code of this file.

Classes

class  CoreWebView2CustomSchemeRegistrationBase< allocate_fn_t, allocate_fn, deallocate_fn_t, deallocate_fn >
 
class  CoreWebView2EnvironmentOptionsBase< allocate_fn_t, allocate_fn, deallocate_fn_t, deallocate_fn >
 
class  CoreWebView2EnvironmentOptionsBaseClass< allocate_fn_t, allocate_fn, deallocate_fn_t, deallocate_fn >
 

Macros

#define CORE_WEBVIEW_TARGET_PRODUCT_VERSION   L"118.0.2088.41"
 
#define COREWEBVIEW2ENVIRONMENTOPTIONS_STRING_PROPERTY(p)
 
#define COREWEBVIEW2ENVIRONMENTOPTIONS_BOOL_PROPERTY(p, defPVal)
 
#define DEFINE_AUTO_COMEM_STRING()
 

Typedefs

typedef CoreWebView2CustomSchemeRegistrationBase< decltype(&::CoTaskMemAlloc), ::CoTaskMemAlloc, decltype(&::CoTaskMemFree), ::CoTaskMemFree > CoreWebView2CustomSchemeRegistration
 
typedef CoreWebView2EnvironmentOptionsBaseClass< decltype(&::CoTaskMemAlloc), ::CoTaskMemAlloc, decltype(&::CoTaskMemFree), ::CoTaskMemFree > CoreWebView2EnvironmentOptions
 

Macro Definition Documentation

◆ CORE_WEBVIEW_TARGET_PRODUCT_VERSION

#define CORE_WEBVIEW_TARGET_PRODUCT_VERSION   L"118.0.2088.41"

◆ COREWEBVIEW2ENVIRONMENTOPTIONS_BOOL_PROPERTY

#define COREWEBVIEW2ENVIRONMENTOPTIONS_BOOL_PROPERTY (   p,
  defPVal 
)
Value:
\
public: \
HRESULT STDMETHODCALLTYPE get_##p(BOOL* value) override \
{ \
if (!value) \
return E_POINTER; \
*value = m_##p; \
return S_OK; \
} \
HRESULT STDMETHODCALLTYPE put_##p(BOOL value) override \
{ \
m_##p = value; \
return S_OK; \
} \
\
protected: \
BOOL m_##p = defPVal ? TRUE : FALSE;

◆ COREWEBVIEW2ENVIRONMENTOPTIONS_STRING_PROPERTY

#define COREWEBVIEW2ENVIRONMENTOPTIONS_STRING_PROPERTY (   p)
Value:
\
public: \
HRESULT STDMETHODCALLTYPE get_##p(LPWSTR* value) override \
{ \
if (!value) \
return E_POINTER; \
*value = m_##p.Copy(); \
if ((*value == nullptr) && (m_##p.Get() != nullptr)) \
return HRESULT_FROM_WIN32(GetLastError()); \
return S_OK; \
} \
HRESULT STDMETHODCALLTYPE put_##p(LPCWSTR value) override \
{ \
LPCWSTR result = m_##p.Set(value); \
if ((result == nullptr) && (value != nullptr)) \
return HRESULT_FROM_WIN32(GetLastError()); \
return S_OK; \
} \
\
protected: \
AutoCoMemString m_##p;

◆ DEFINE_AUTO_COMEM_STRING

#define DEFINE_AUTO_COMEM_STRING ( )

Typedef Documentation

◆ CoreWebView2CustomSchemeRegistration

typedef CoreWebView2CustomSchemeRegistrationBase< decltype(&::CoTaskMemAlloc), ::CoTaskMemAlloc, decltype(&::CoTaskMemFree), ::CoTaskMemFree> CoreWebView2CustomSchemeRegistration

◆ CoreWebView2EnvironmentOptions

typedef CoreWebView2EnvironmentOptionsBaseClass< decltype(&::CoTaskMemAlloc), ::CoTaskMemAlloc, decltype(&::CoTaskMemFree), ::CoTaskMemFree> CoreWebView2EnvironmentOptions