Add initial stubbed openDialog implementation

This commit is contained in:
Kevin Sawicki
2012-06-04 11:20:31 -07:00
parent c6697cf87b
commit b2b81815e6
4 changed files with 79 additions and 23 deletions

View File

@@ -83,6 +83,7 @@ void ClientHandler::OnLoadStart(CefRefPtr<CefBrowser> browser,
global->SetValue("$windowNumber", windowNumber, V8_PROPERTY_ATTRIBUTE_NONE);
CefRefPtr<NativeHandler> nativeHandler = new NativeHandler();
nativeHandler->window = window;
global->SetValue("$native", nativeHandler->object, V8_PROPERTY_ATTRIBUTE_NONE);
CefRefPtr<CefV8Value> atom = CefV8Value::CreateObject(NULL, NULL);
@@ -295,6 +296,10 @@ bool ClientHandler::OnBeforeScriptExtensionLoad(
return false;
}
void ClientHandler::SetWindow(GtkWidget* widget){
window = widget;
}
void ClientHandler::SetMainHwnd(CefWindowHandle hwnd) {
AutoLock lock_scope(this);
m_MainHwnd = hwnd;