FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void FB::ActiveX::ActiveXBrowserHost::Navigate ( const std::string &  url,
const std::string &  target 
)
virtual

Instructs the browser to navigate to the specified url in the target window.

Parameters
urlURL to navigate to
targetTarget window (for example, "_blank" will open a new window/tab)
Since
1.6.0rc2

Reimplemented from FB::BrowserHost.

Definition at line 386 of file ActiveXBrowserHost.cpp.

References FB::utf8_to_wstring().

387 {
388  CComBSTR destURL(FB::utf8_to_wstring(url).c_str());
389  CComVariant targetWin(FB::utf8_to_wstring(target).c_str());
390 
391  CComVariant vEmpty;
392 
393  HRESULT hr = m_webBrowser->Navigate(destURL, &vEmpty, &targetWin, &vEmpty, &vEmpty);
394  assert(SUCCEEDED(hr));
395 }
std::wstring utf8_to_wstring(const std::string &src)
Accepts a UTF8-encoded std::string and returns a std::wstring.
Definition: utf8_tools.cpp:50

Here is the call graph for this function: