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

Unified Diff: chrome/browser/ui/chrome_bubble_manager.cc

Issue 1292353006: Mac Changes for BubbleManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mcdb-mac-3.gitbr
Patch Set: Created 5 years, 4 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
Index: chrome/browser/ui/chrome_bubble_manager.cc
diff --git a/chrome/browser/ui/chrome_bubble_manager.cc b/chrome/browser/ui/chrome_bubble_manager.cc
index 62c3f685370288adb73869cc251e270876d6a664..400a1dbd9ca53008ea49802d4f60cb7bce3bf2d0 100644
--- a/chrome/browser/ui/chrome_bubble_manager.cc
+++ b/chrome/browser/ui/chrome_bubble_manager.cc
@@ -99,3 +99,12 @@ void ChromeBubbleManager::NavigationEntryCommitted(
void ChromeBubbleManager::WebContentsDestroyed(content::WebContents* context) {
CloseMatchingBubbles(context, FORCE_CLOSE, BUBBLE_CLOSE_IGNORE);
}
+
+void ChromeBubbleManager::UpdateAnchorPosition(content::WebContents* context) {
+ MassUpdateBubbles(context, base::Bind(&ChromeBubbleManager::UpdateBubbleUI,
+ this->AsWeakPtr()));
+}
+
+void ChromeBubbleManager::UserDismissBubbles(content::WebContents* context) {
+ CloseMatchingBubbles(context, FORCE_CLOSE, BUBBLE_CLOSE_CLOSE);
+}

Powered by Google App Engine
This is Rietveld 408576698