mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy: Use Chrome JS dialogs on Windows/Linux (fixes issue #3316)
This commit is contained in:
@@ -121,10 +121,10 @@ class ClientHandler : public CefClient,
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
CefRefPtr<CefDialogHandler> GetDialogHandler() override {
|
||||
return dialog_handler_;
|
||||
return file_dialog_handler_;
|
||||
}
|
||||
CefRefPtr<CefJSDialogHandler> GetJSDialogHandler() override {
|
||||
return dialog_handler_;
|
||||
return js_dialog_handler_;
|
||||
}
|
||||
CefRefPtr<CefPrintHandler> GetPrintHandler() override {
|
||||
return print_handler_;
|
||||
@@ -389,8 +389,9 @@ class ClientHandler : public CefClient,
|
||||
bool download_favicon_images_;
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
// Custom dialog handler for GTK.
|
||||
CefRefPtr<ClientDialogHandlerGtk> dialog_handler_;
|
||||
// Custom dialog handlers for GTK.
|
||||
CefRefPtr<ClientDialogHandlerGtk> file_dialog_handler_;
|
||||
CefRefPtr<ClientDialogHandlerGtk> js_dialog_handler_;
|
||||
CefRefPtr<ClientPrintHandlerGtk> print_handler_;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user