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

Unified Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.mm

Issue 8676016: Mac Panels changed to hide tab contents view after tab contents are gone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/panels/panel_window_controller_cocoa.mm
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
index d504eee815daebb76d39f05307167ded80db7fe2..06e69df40e587410dc730d05bad69c18ca377ad3 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
@@ -249,11 +249,13 @@ enum {
- (void)tabInserted:(TabContents*)contents {
[contentsController_ changeTabContents:contents];
+ DCHECK(![[contentsController_ view] isHidden]);
}
- (void)tabDetached:(TabContents*)contents {
DCHECK(contents == [contentsController_ tabContents]);
[contentsController_ changeTabContents:NULL];
+ [[contentsController_ view] setHidden:YES];
}
- (PanelTitlebarViewCocoa*)titlebarView {
« 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