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

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

Issue 10185005: [Mac] Fix "Chrome windows use more 'hidden' space on Exposé/Mission Control". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/status_bubble_mac.mm
===================================================================
--- chrome/browser/ui/cocoa/status_bubble_mac.mm (revision 133437)
+++ chrome/browser/ui/cocoa/status_bubble_mac.mm (working copy)
@@ -118,7 +118,8 @@
Hide();
[[[window_ animationForKey:kFadeAnimationKey] delegate] invalidate];
- Detach();
+ if (is_attached())
Mark Mentovai 2012/04/23 17:59:36 Why not move this logic into Detach()? Detach() i
asvitkine_google 2012/04/23 18:06:24 Done.
+ Detach();
[window_ release];
window_ = nil;
}
@@ -447,8 +448,12 @@
if (state == state_)
return;
- if (state == kBubbleHidden)
- [window_ setFrame:NSMakeRect(0, 0, 1, 1) display:YES];
+ if (state == kBubbleHidden) {
sail 2012/04/23 18:08:53 Hi Alexei. I think this change might reintroduce b
sail 2012/04/23 18:10:22 Also, you may decide that regressing the above bug
+ if (is_attached())
+ Detach();
+ } else if (!is_attached()) {
+ Attach();
+ }
if ([delegate_ respondsToSelector:@selector(statusBubbleWillEnterState:)])
[delegate_ statusBubbleWillEnterState:state];
@@ -680,7 +685,8 @@
DCHECK(parent);
DCHECK(is_attached());
- Detach();
+ if (is_attached())
+ Detach();
parent_ = parent;
Attach();
UpdateSizeAndPosition();
« 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