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

Unified Diff: chrome/browser/cocoa/browser_window_controller.mm

Issue 1599028: [Mac] Cache the BWC to use when releasing bar visibility for the bookmark bub... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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/cocoa/browser_window_controller.mm
===================================================================
--- chrome/browser/cocoa/browser_window_controller.mm (revision 52872)
+++ chrome/browser/cocoa/browser_window_controller.mm (working copy)
@@ -1665,6 +1665,11 @@
kCGDisplayBlendSolidColor, 0.0, 0.0, 0.0, /*synchronous=*/true);
}
+ // Close the bookmark bubble, if it's open. We use |-ok:| instead of
+ // |-cancel:| or |-close| because that matches the behavior when the bubble
+ // loses key status.
+ [bookmarkBubbleController_ ok:self];
+
// Save the current first responder so we can restore after views are moved.
NSWindow* window = [self window];
scoped_nsobject<FocusTracker> focusTracker(
« 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