Compare commits
2 Commits
9774348eb5
...
a918aa72bc
Author | SHA1 | Date |
---|---|---|
Jacobo Aragunde Pérez | a918aa72bc | |
Nik Pavlov | c06c7439df |
|
@ -515,9 +515,11 @@ CefFileDialogManager::MaybeRunDelegate(
|
||||||
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
|
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
|
||||||
}
|
}
|
||||||
accept_extensions.push_back(ext_str);
|
accept_extensions.push_back(ext_str);
|
||||||
|
if (descriptions.size() == extensions.size()) {
|
||||||
accept_descriptions.push_back(descriptions[i]);
|
accept_descriptions.push_back(descriptions[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CefRefPtr<CefFileDialogCallbackImpl> callbackImpl(
|
CefRefPtr<CefFileDialogCallbackImpl> callbackImpl(
|
||||||
new CefFileDialogCallbackImpl(std::move(callback)));
|
new CefFileDialogCallbackImpl(std::move(callback)));
|
||||||
|
|
|
@ -42,6 +42,9 @@ CefWidget* CefWidget::GetForWidget(views::Widget* widget) {
|
||||||
if (auto window = view_util::GetWindowFor(widget)) {
|
if (auto window = view_util::GetWindowFor(widget)) {
|
||||||
if (auto* window_view =
|
if (auto* window_view =
|
||||||
static_cast<CefWindowImpl*>(window.get())->cef_window_view()) {
|
static_cast<CefWindowImpl*>(window.get())->cef_window_view()) {
|
||||||
|
if (auto widget_view = view_util::GetHostView(widget)) {
|
||||||
|
widget = widget_view->GetWidget();
|
||||||
|
}
|
||||||
if (window_view->IsChromeStyle()) {
|
if (window_view->IsChromeStyle()) {
|
||||||
return static_cast<ChromeBrowserFrame*>(widget);
|
return static_cast<ChromeBrowserFrame*>(widget);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue