| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_strip_controller.h" | 5 #import "chrome/browser/cocoa/tab_strip_controller.h" |
| 6 | 6 |
| 7 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // we're gone. | 373 // we're gone. |
| 374 for (TabController* controller in closingControllers_.get()) { | 374 for (TabController* controller in closingControllers_.get()) { |
| 375 NSView* view = [controller view]; | 375 NSView* view = [controller view]; |
| 376 [[[view animationForKey:@"frameOrigin"] delegate] invalidate]; | 376 [[[view animationForKey:@"frameOrigin"] delegate] invalidate]; |
| 377 } | 377 } |
| 378 [[NSNotificationCenter defaultCenter] removeObserver:self]; | 378 [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| 379 [super dealloc]; | 379 [super dealloc]; |
| 380 } | 380 } |
| 381 | 381 |
| 382 + (CGFloat)defaultTabHeight { | 382 + (CGFloat)defaultTabHeight { |
| 383 return 24.0; | 383 return 25.0; |
| 384 } | 384 } |
| 385 | 385 |
| 386 + (CGFloat)defaultIndentForControls { | 386 + (CGFloat)defaultIndentForControls { |
| 387 // Default indentation leaves enough room so tabs don't overlap with the | 387 // Default indentation leaves enough room so tabs don't overlap with the |
| 388 // window controls. | 388 // window controls. |
| 389 return 64.0; | 389 return 64.0; |
| 390 } | 390 } |
| 391 | 391 |
| 392 // Finds the TabContentsController associated with the given index into the tab | 392 // Finds the TabContentsController associated with the given index into the tab |
| 393 // model and swaps out the sole child of the contentArea to display its | 393 // model and swaps out the sole child of the contentArea to display its |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 return; | 1740 return; |
| 1741 | 1741 |
| 1742 TabContentsController* tabController = | 1742 TabContentsController* tabController = |
| 1743 [tabContentsArray_ objectAtIndex:index]; | 1743 [tabContentsArray_ objectAtIndex:index]; |
| 1744 TabContents* devtoolsContents = contents ? | 1744 TabContents* devtoolsContents = contents ? |
| 1745 DevToolsWindow::GetDevToolsContents(contents) : NULL; | 1745 DevToolsWindow::GetDevToolsContents(contents) : NULL; |
| 1746 [tabController showDevToolsContents:devtoolsContents]; | 1746 [tabController showDevToolsContents:devtoolsContents]; |
| 1747 } | 1747 } |
| 1748 | 1748 |
| 1749 @end | 1749 @end |
| OLD | NEW |