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 #include <Carbon/Carbon.h> | 5 #include <Carbon/Carbon.h> |
6 | 6 |
7 #include "base/mac_util.h" | 7 #include "base/mac_util.h" |
8 #include "base/scoped_nsdisable_screen_updates.h" | 8 #include "base/scoped_nsdisable_screen_updates.h" |
9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 yStretchiness:yStretchiness]; | 810 yStretchiness:yStretchiness]; |
811 } | 811 } |
812 | 812 |
813 - (void)removePlaceholder { | 813 - (void)removePlaceholder { |
814 [super removePlaceholder]; | 814 [super removePlaceholder]; |
815 [tabStripController_ insertPlaceholderForTab:nil | 815 [tabStripController_ insertPlaceholderForTab:nil |
816 frame:NSZeroRect | 816 frame:NSZeroRect |
817 yStretchiness:0]; | 817 yStretchiness:0]; |
818 } | 818 } |
819 | 819 |
| 820 - (BOOL)isTabFullyVisible:(TabView*)tab { |
| 821 return [tabStripController_ isTabFullyVisible:tab]; |
| 822 } |
| 823 |
820 - (void)showNewTabButton:(BOOL)show { | 824 - (void)showNewTabButton:(BOOL)show { |
821 [tabStripController_ showNewTabButton:show]; | 825 [tabStripController_ showNewTabButton:show]; |
822 } | 826 } |
823 | 827 |
824 - (BOOL)isBookmarkBarVisible { | 828 - (BOOL)isBookmarkBarVisible { |
825 return [[toolbarController_ bookmarkBarController] isBookmarkBarVisible]; | 829 return [[toolbarController_ bookmarkBarController] isBookmarkBarVisible]; |
826 | 830 |
827 } | 831 } |
828 | 832 |
829 - (void)toggleBookmarkBar { | 833 - (void)toggleBookmarkBar { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 provider->GetNSColor(BrowserThemeProvider::COLOR_TOOLBAR); | 1379 provider->GetNSColor(BrowserThemeProvider::COLOR_TOOLBAR); |
1376 [theme setValue:toolbarBackgroundColor | 1380 [theme setValue:toolbarBackgroundColor |
1377 forAttribute:@"backgroundColor" | 1381 forAttribute:@"backgroundColor" |
1378 style:GTMThemeStyleToolBar | 1382 style:GTMThemeStyleToolBar |
1379 state:GTMThemeStateActiveWindow]; | 1383 state:GTMThemeStateActiveWindow]; |
1380 | 1384 |
1381 return theme; | 1385 return theme; |
1382 } | 1386 } |
1383 @end | 1387 @end |
1384 | 1388 |
OLD | NEW |