Skip to content

Commit

Permalink
Cef compilation fix (#3479)
Browse files Browse the repository at this point in the history
  • Loading branch information
tederis authored Jun 16, 2024
1 parent 8ba0c1b commit e3f9099
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Client/cefweb/CWebView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,9 @@ bool CWebView::OnJSDialog(CefRefPtr<CefBrowser> browser, const CefString& origin
// //
// //
////////////////////////////////////////////////////////////////////
bool CWebView::OnFileDialog(CefRefPtr<CefBrowser> browser, CefDialogHandler::FileDialogMode mode, const CefString& title, const CefString& default_file_path,
const std::vector<CefString>& accept_filters, CefRefPtr<CefFileDialogCallback> callback)
bool CWebView::OnFileDialog(CefRefPtr<CefBrowser> browser, FileDialogMode mode, const CefString& title, const CefString& default_file_path,
const std::vector<CefString>& accept_filters, const std::vector<CefString>& accept_extensions, const std::vector<CefString>& accept_descriptions,
CefRefPtr<CefFileDialogCallback> callback)
{
// Don't show the dialog
return true;
Expand Down
5 changes: 3 additions & 2 deletions Client/cefweb/CWebView.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ class CWebView : public CWebViewInterface,
bool& suppress_message) override;

// CefDialogHandler methods
virtual bool OnFileDialog(CefRefPtr<CefBrowser> browser, CefDialogHandler::FileDialogMode mode, const CefString& title, const CefString& default_file_path,
const std::vector<CefString>& accept_filters, CefRefPtr<CefFileDialogCallback> callback) override;
virtual bool OnFileDialog(CefRefPtr<CefBrowser> browser, FileDialogMode mode, const CefString& title, const CefString& default_file_path,
const std::vector<CefString>& accept_filters, const std::vector<CefString>& accept_extensions, const std::vector<CefString>& accept_descriptions,
CefRefPtr<CefFileDialogCallback> callback) override;

// CefDisplayHandler methods
virtual void OnTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title) override;
Expand Down

0 comments on commit e3f9099

Please sign in to comment.