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

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

Issue 452012: Merge 33291 - Clear the target/action of the close button when the view goes ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 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 | « chrome/browser/cocoa/tab_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_view.mm
===================================================================
--- chrome/browser/cocoa/tab_view.mm (revision 33294)
+++ chrome/browser/cocoa/tab_view.mm (working copy)
@@ -809,4 +809,13 @@
}
}
+- (void)setIsClosing:(BOOL)closing {
+ isClosing_ = closing;
+ // When closing, ensure clicks to the close button go nowhere.
+ if (closing) {
+ [closeButton_ setTarget:nil];
+ [closeButton_ setAction:nil];
+ }
+}
+
@end
« no previous file with comments | « chrome/browser/cocoa/tab_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698