本文整理汇总了C++中CefWindowInfo::SetAsPopup方法的典型用法代码示例。如果您正苦于以下问题:C++ CefWindowInfo::SetAsPopup方法的具体用法?C++ CefWindowInfo::SetAsPopup怎么用?C++ CefWindowInfo::SetAsPopup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CefWindowInfo
的用法示例。
在下文中一共展示了CefWindowInfo::SetAsPopup方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: __showDev
void __showDev(HWND hWnd){
BrowserWindowInfo * bw = getBrowserWindowInfo(hWnd);
if (bw != NULL){
CefWindowInfo windowInfo;
windowInfo.SetAsPopup(NULL, "cef_debug");
bw->browser->GetHost()->ShowDevTools(windowInfo, new DEBUG_Handler(), CefBrowserSettings(), CefPoint());
}
}
示例2: ShowDevTools
void ClientHandler::ShowDevTools(CefRefPtr<CefBrowser> browser) {
CefWindowInfo windowInfo;
CefBrowserSettings settings;
#if defined(OS_WIN)
windowInfo.SetAsPopup(browser->GetHost()->GetWindowHandle(), "DevTools");
#endif
browser->GetHost()->ShowDevTools(windowInfo, this, settings);
}
示例3: ShowDevTools
bool ShowDevTools(CefRefPtr<CefBrowser> browser) {
CefWindowInfo windowInfo;
CefBrowserSettings settings;
#if defined(OS_WIN)
windowInfo.SetAsPopup(browser->GetHost()->GetWindowHandle(), "DevTools");
#endif
browser->GetHost()->ShowDevTools(windowInfo, browser->GetHost()->GetClient(),
settings, CefPoint());
return true;
}
示例4: ShowDevTools
inline void ShowDevTools(CWebClient * pthis, CefRefPtr<CefBrowser> browser,
const CefPoint& inspect_element_at) {
CefWindowInfo windowInfo;
CefBrowserSettings settings;
#if defined(OS_WIN)
windowInfo.SetAsPopup(browser->GetHost()->GetWindowHandle(), "DevTools");
#endif
browser->GetHost()->ShowDevTools(windowInfo, pthis, settings,
inspect_element_at);
}
示例5: showDevTools
void Client::showDevTools( CefRefPtr<CefBrowser> browser )
{
std::stringstream ss;
ss << "showDevTools, id=" << browser->GetIdentifier();
HL_DEBUG(logger, ss.str());
CefWindowInfo windowInfo;
CefBrowserSettings settings;
#if defined(OS_WIN)
windowInfo.SetAsPopup(browser->GetHost()->GetWindowHandle(), "DevTools");
#endif
browser->GetHost()->ShowDevTools(windowInfo, this, settings, CefPoint());
}
示例6: RunTransparentPopupTest
void RunTransparentPopupTest(CefRefPtr<CefBrowser> browser) {
CefWindowInfo info;
CefBrowserSettings settings;
// Initialize window info to the defaults for a popup window
info.SetAsPopup(NULL, "TransparentPopup");
info.SetTransparentPainting(TRUE);
info.m_nWidth = 500;
info.m_nHeight = 500;
// Creat the popup browser window
CefBrowser::CreateBrowser(info,
static_cast<CefRefPtr<CefClient> >(g_handler),
"http://tests/transparency", settings);
}