Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4764)

Unified Diff: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm

Issue 2063103002: Fixed overlapping subtle notifications on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
diff --git a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
index df37742bb1fe7934cf430f1c9d62a1745d12e123..40eb1a8327bfcd9b2e709663d42ac00c908a57f9 100644
--- a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
+++ b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm
@@ -36,6 +36,9 @@ ExclusiveAccessController::~ExclusiveAccessController() {}
void ExclusiveAccessController::Show() {
if (ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled()) {
+ // Hide the backspace shortcut bubble, to avoid overlapping.
+ new_back_shortcut_bubble_.reset();
+
views_bubble_.reset(
new ExclusiveAccessBubbleViews(this, url_, bubble_type_));
return;
@@ -52,6 +55,9 @@ void ExclusiveAccessController::Show() {
}
void ExclusiveAccessController::ShowNewBackShortcutBubble(bool forward) {
+ // Hide the exclusive access bubble, to avoid overlapping.
+ views_bubble_.reset();
+
if (new_back_shortcut_bubble_)
new_back_shortcut_bubble_->UpdateContent(forward);
else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698