mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 92.0.4515.0 (#885287)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
diff --git chrome/browser/sharesheet/sharesheet_service_delegate.cc chrome/browser/sharesheet/sharesheet_service_delegate.cc
|
||||
index 3cb0c531e382e..a40b50e060483 100644
|
||||
index f250b1b444de0..d0b7efeadbe18 100644
|
||||
--- chrome/browser/sharesheet/sharesheet_service_delegate.cc
|
||||
+++ chrome/browser/sharesheet/sharesheet_service_delegate.cc
|
||||
@@ -19,8 +19,10 @@ SharesheetServiceDelegate::SharesheetServiceDelegate(
|
||||
gfx::NativeWindow native_window,
|
||||
SharesheetService* sharesheet_service)
|
||||
: native_window_(native_window),
|
||||
+#if defined(OS_CHROMEOS)
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
sharesheet_bubble_view_(
|
||||
std::make_unique<SharesheetBubbleView>(native_window, this)),
|
||||
new ash::sharesheet::SharesheetBubbleView(native_window, this)),
|
||||
+#endif
|
||||
sharesheet_service_(sharesheet_service) {}
|
||||
|
||||
@@ -17,69 +17,49 @@ index 3cb0c531e382e..a40b50e060483 100644
|
||||
}
|
||||
return;
|
||||
}
|
||||
+#if defined(OS_CHROMEOS)
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
sharesheet_bubble_view_->ShowBubble(std::move(targets), std::move(intent),
|
||||
std::move(delivered_callback));
|
||||
+#endif
|
||||
is_bubble_open_ = true;
|
||||
}
|
||||
|
||||
@@ -52,15 +56,19 @@ void SharesheetServiceDelegate::ShowNearbyShareBubble(
|
||||
}
|
||||
return;
|
||||
}
|
||||
+#if defined(OS_CHROMEOS)
|
||||
sharesheet_bubble_view_->ShowNearbyShareBubble(std::move(intent),
|
||||
std::move(delivered_callback));
|
||||
+#endif
|
||||
is_bubble_open_ = true;
|
||||
}
|
||||
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
|
||||
void SharesheetServiceDelegate::OnBubbleClosed(
|
||||
const std::u16string& active_action) {
|
||||
+#if defined(OS_CHROMEOS)
|
||||
sharesheet_bubble_view_.release();
|
||||
+#endif
|
||||
sharesheet_service_->OnBubbleClosed(native_window_, active_action);
|
||||
// This object is now deleted and nothing can be accessed any more.
|
||||
// Therefore there is no need to set is_bubble_open_ to false.
|
||||
@@ -82,7 +90,9 @@ bool SharesheetServiceDelegate::OnAcceleratorPressed(
|
||||
@@ -81,7 +85,9 @@ bool SharesheetServiceDelegate::OnAcceleratorPressed(
|
||||
}
|
||||
|
||||
void SharesheetServiceDelegate::OnActionLaunched() {
|
||||
+#if defined(OS_CHROMEOS)
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
sharesheet_bubble_view_->ShowActionView();
|
||||
+#endif
|
||||
}
|
||||
|
||||
const gfx::VectorIcon* SharesheetServiceDelegate::GetVectorIcon(
|
||||
@@ -102,11 +112,15 @@ void SharesheetServiceDelegate::SetSharesheetSize(const int& width,
|
||||
@@ -101,11 +107,15 @@ void SharesheetServiceDelegate::SetSharesheetSize(const int& width,
|
||||
const int& height) {
|
||||
DCHECK_GT(width, 0);
|
||||
DCHECK_GT(height, 0);
|
||||
+#if defined(OS_CHROMEOS)
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
sharesheet_bubble_view_->ResizeBubble(width, height);
|
||||
+#endif
|
||||
}
|
||||
|
||||
void SharesheetServiceDelegate::CloseSharesheet() {
|
||||
+#if defined(OS_CHROMEOS)
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
sharesheet_bubble_view_->CloseBubble();
|
||||
+#endif
|
||||
}
|
||||
|
||||
} // namespace sharesheet
|
||||
diff --git chrome/browser/sharesheet/sharesheet_service_delegate.h chrome/browser/sharesheet/sharesheet_service_delegate.h
|
||||
index cba3392d1057c..b307678693797 100644
|
||||
index 24dc55adca062..236eb65db6a45 100644
|
||||
--- chrome/browser/sharesheet/sharesheet_service_delegate.h
|
||||
+++ chrome/browser/sharesheet/sharesheet_service_delegate.h
|
||||
@@ -72,7 +72,9 @@ class SharesheetServiceDelegate : public SharesheetController {
|
||||
gfx::NativeWindow native_window_;
|
||||
@@ -77,7 +77,9 @@ class SharesheetServiceDelegate : public SharesheetController {
|
||||
|
||||
std::u16string active_action_;
|
||||
+#if defined(OS_CHROMEOS)
|
||||
std::unique_ptr<SharesheetBubbleView> sharesheet_bubble_view_;
|
||||
// Owned by views.
|
||||
+#if BUILDFLAG(IS_CHROMEOS_ASH)
|
||||
ash::sharesheet::SharesheetBubbleView* sharesheet_bubble_view_;
|
||||
+#endif
|
||||
SharesheetService* sharesheet_service_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user