|
50 | 50 | #include "components/zoom/zoom_controller.h"
|
51 | 51 | #include "content/browser/gpu/compositor_util.h"
|
52 | 52 | #include "content/browser/web_contents/web_contents_impl.h"
|
53 |
| -#include "content/common/view_messages.h" |
| 53 | +#include "content/common/widget_messages.h" |
54 | 54 | #include "content/public/browser/desktop_media_id.h"
|
55 | 55 | #include "content/public/browser/download_manager.h"
|
56 | 56 | #include "content/public/browser/download_request_utils.h"
|
|
71 | 71 | #include "content/public/common/favicon_url.h"
|
72 | 72 | #include "extensions/browser/process_manager.h"
|
73 | 73 | #include "net/base/net_errors.h"
|
74 |
| -#include "third_party/blink/public/web/web_find_options.h" |
| 74 | +#include "third_party/blink/public/mojom/frame/find_in_page.mojom.h" |
75 | 75 | #include "ui/events/base_event_utils.h"
|
76 | 76 |
|
77 | 77 | #if defined(OS_MACOSX)
|
@@ -622,7 +622,7 @@ void CefBrowserHostImpl::CloseBrowser(bool force_close) {
|
622 | 622 | if (contents && contents->NeedToFireBeforeUnload()) {
|
623 | 623 | // Will result in a call to BeforeUnloadFired() and, if the close isn't
|
624 | 624 | // canceled, CloseContents().
|
625 |
| - contents->DispatchBeforeUnload(); |
| 625 | + contents->DispatchBeforeUnload(false /* auto_cancel */); |
626 | 626 | } else {
|
627 | 627 | CloseContents(contents);
|
628 | 628 | }
|
@@ -846,11 +846,11 @@ void CefBrowserHostImpl::Find(int identifier,
|
846 | 846 | else
|
847 | 847 | find_request_id_counter_ = identifier;
|
848 | 848 |
|
849 |
| - blink::WebFindOptions options; |
850 |
| - options.forward = forward; |
851 |
| - options.match_case = matchCase; |
852 |
| - options.find_next = findNext; |
853 |
| - web_contents()->Find(identifier, searchText, options); |
| 849 | + auto options = blink::mojom::FindOptions::New(); |
| 850 | + options->forward = forward; |
| 851 | + options->match_case = matchCase; |
| 852 | + options->find_next = findNext; |
| 853 | + web_contents()->Find(identifier, searchText, std::move(options)); |
854 | 854 | } else {
|
855 | 855 | CEF_POST_TASK(CEF_UIT,
|
856 | 856 | base::BindOnce(&CefBrowserHostImpl::Find, this, identifier,
|
@@ -2566,7 +2566,7 @@ CefBrowserHostImpl::GetJavaScriptDialogManager(content::WebContents* source) {
|
2566 | 2566 |
|
2567 | 2567 | void CefBrowserHostImpl::RunFileChooser(
|
2568 | 2568 | content::RenderFrameHost* render_frame_host,
|
2569 |
| - const content::FileChooserParams& params) { |
| 2569 | + const blink::mojom::FileChooserParams& params) { |
2570 | 2570 | EnsureFileDialogManager();
|
2571 | 2571 | file_dialog_manager_->RunFileChooser(render_frame_host, params);
|
2572 | 2572 | }
|
@@ -2929,7 +2929,7 @@ void CefBrowserHostImpl::DidUpdateFaviconURL(
|
2929 | 2929 | bool CefBrowserHostImpl::OnMessageReceived(const IPC::Message& message) {
|
2930 | 2930 | // Handle the cursor message here if mouse cursor change is disabled instead
|
2931 | 2931 | // of propegating the message to the normal handler.
|
2932 |
| - if (message.type() == ViewHostMsg_SetCursor::ID) |
| 2932 | + if (message.type() == WidgetHostMsg_SetCursor::ID) |
2933 | 2933 | return IsMouseCursorChangeDisabled();
|
2934 | 2934 |
|
2935 | 2935 | bool handled = true;
|
|
0 commit comments