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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/tab_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/cocoa/tab_view.h" 5 #import "chrome/browser/cocoa/tab_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/nsimage_cache_mac.h" 8 #include "base/nsimage_cache_mac.h"
9 #import "chrome/browser/cocoa/tab_controller.h" 9 #import "chrome/browser/cocoa/tab_controller.h"
10 #import "chrome/browser/cocoa/tab_window_controller.h" 10 #import "chrome/browser/cocoa/tab_window_controller.h"
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 [NSMenu popUpContextMenu:[self menu] withEvent:theEvent forView:self]; 802 [NSMenu popUpContextMenu:[self menu] withEvent:theEvent forView:self];
803 } 803 }
804 804
805 - (void)viewDidMoveToWindow { 805 - (void)viewDidMoveToWindow {
806 [super viewDidMoveToWindow]; 806 [super viewDidMoveToWindow];
807 if ([self window]) { 807 if ([self window]) {
808 [controller_ updateTitleColor]; 808 [controller_ updateTitleColor];
809 } 809 }
810 } 810 }
811 811
812 - (void)setIsClosing:(BOOL)closing {
813 isClosing_ = closing;
814 // When closing, ensure clicks to the close button go nowhere.
815 if (closing) {
816 [closeButton_ setTarget:nil];
817 [closeButton_ setAction:nil];
818 }
819 }
820
812 @end 821 @end
OLDNEW
« 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