IBrowserEngine* BrowserFactory::createIE(HWND hwndParent) { if (RHO_IS_WMDEVICE) { RHODESAPP().getExtManager().getEngineEventMngr().setEngineType(rho::engineeventlistner::eWmIe); return CIEBrowserEngine::getInstance(hwndParent, rho_wmimpl_get_appinstance()); } else { RHODESAPP().getExtManager().getEngineEventMngr().setEngineType(rho::engineeventlistner::eCeIe); return new CEBrowserEngine(hwndParent, rho_wmimpl_get_appinstance()); } }
bool CHostTracker::onWndMsg(MSG& oMsg) { bool retStatus = false; if(oMsg.message == WM_ON_CONNECTION_BOX) { bool bCreate = static_cast<bool>(oMsg.wParam); if(bCreate) { m_hConnectDlg = CreateDialog(rho_wmimpl_get_appinstance(), MAKEINTRESOURCE(IDD_CONNECTION_DLG), oMsg.hwnd, &CHostTracker::ConnectDlgProc); if(m_hConnectDlg != NULL) { ShowWindow(m_hConnectDlg, SW_SHOW); } else { LOG(ERROR) + "CreateDialog in CHostTracker returned NULL"; } } else { DestroyWindow(m_hConnectDlg); m_hConnectDlg = NULL; } retStatus = true; } return retStatus; }
CRhoExtData CExtManager::makeExtData() { CRhoExtData oData; oData.m_hWnd = getMainWnd(); oData.m_hInstance = rho_wmimpl_get_appinstance(); #if !defined(OS_WINDOWS_DESKTOP) //oData.m_hBrowserWnd = getAppWindow().getWebKitEngine()->GetHTMLWND(); #endif oData.m_iTabIndex = rho_webview_active_tab(); return oData; }
CRhoExtData CExtManager::makeExtData() { CRhoExtData oData; #ifndef RHODES_QT_PLATFORM oData.m_hWnd = getMainWnd(); oData.m_hInstance = rho_wmimpl_get_appinstance(); #else oData.m_hWnd = 0; oData.m_hInstance = 0; #endif oData.m_iTabIndex = rho_webview_active_tab(); #if !defined(OS_WINDOWS_DESKTOP) if(getAppWindow().getWebKitEngine()) oData.m_hBrowserWnd = getAppWindow().getWebKitEngine()->GetHTMLWND(oData.m_iTabIndex); #endif return oData; }
IBrowserEngine* BrowserFactory::createWebkit(HWND hwndParent) { RHODESAPP().getExtManager().getEngineEventMngr().setEngineType(rho::engineeventlistner::eWebkit); return rho_wmimpl_get_webkitBrowserEngine(hwndParent, rho_wmimpl_get_appinstance()); }