| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |