OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #import "chrome/browser/ui/cocoa/hover_close_button.h" | 10 #import "chrome/browser/ui/cocoa/hover_close_button.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Ideally, tabs would know about their own animation and wouldn't need this. | 104 // Ideally, tabs would know about their own animation and wouldn't need this. |
105 - (BOOL)inRapidClosureMode; | 105 - (BOOL)inRapidClosureMode; |
106 | 106 |
107 // Updates the visibility of certain subviews, such as the icon and close | 107 // Updates the visibility of certain subviews, such as the icon and close |
108 // button, based on criteria such as the tab's selected state and its current | 108 // button, based on criteria such as the tab's selected state and its current |
109 // width. | 109 // width. |
110 - (void)updateVisibility; | 110 - (void)updateVisibility; |
111 | 111 |
112 // Update the title color to match the tabs current state. | 112 // Update the title color to match the tabs current state. |
113 - (void)updateTitleColor; | 113 - (void)updateTitleColor; |
114 | |
115 // Sets the maximum number of characters that can be truncated from the | |
116 // beginning of the title. This is used to remove a common prefix among multiple | |
117 // tabs. | |
118 - (void)setTitleCommonPrefixLength:(NSUInteger)length; | |
119 @end | 114 @end |
120 | 115 |
121 @interface TabController(TestingAPI) | 116 @interface TabController(TestingAPI) |
122 - (NSString*)toolTip; | 117 - (NSString*)toolTip; |
123 - (int)iconCapacity; | 118 - (int)iconCapacity; |
124 - (BOOL)shouldShowIcon; | 119 - (BOOL)shouldShowIcon; |
125 - (BOOL)shouldShowCloseButton; | 120 - (BOOL)shouldShowCloseButton; |
126 @end // TabController(TestingAPI) | 121 @end // TabController(TestingAPI) |
127 | 122 |
128 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 123 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |