void BrowserWindowImpl::BindFunction(const core::stringw& name) { Berkelium::WideString lval=Berkelium::WideString::point_to(name.c_str(),name.length()); //m_window->bind(lval,Berkelium::Script::Variant()); m_window->addBindOnStartLoading(lval,Berkelium::Script::Variant::bindFunction(lval,false)); }
int UnicodeEncoding::GetBytesW(const core::stringw& str,byte* buff,int maxLen) { return GetBytesW(&str[0],str.length(),buff,maxLen); }
int UnicodeEncoding::GetBytesCountW(const core::stringw& str) { return str.length()*2; }
void BrowserWindowImpl::ExecuteScript(const core::stringw& script) { m_window->executeJavascript(Berkelium::WideString::point_to(script.c_str(),script.length())); }