OLD | NEW |
1 // Copyright (c) 2010 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" |
11 #include "chrome/browser/ui/tabs/tab_menu_model.h" | 11 #include "chrome/browser/ui/tabs/tab_menu_model.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Ideally, tabs would know about their own animation and wouldn't need this. | 96 // Ideally, tabs would know about their own animation and wouldn't need this. |
97 - (BOOL)inRapidClosureMode; | 97 - (BOOL)inRapidClosureMode; |
98 | 98 |
99 // Updates the visibility of certain subviews, such as the icon and close | 99 // Updates the visibility of certain subviews, such as the icon and close |
100 // button, based on criteria such as the tab's selected state and its current | 100 // button, based on criteria such as the tab's selected state and its current |
101 // width. | 101 // width. |
102 - (void)updateVisibility; | 102 - (void)updateVisibility; |
103 | 103 |
104 // Update the title color to match the tabs current state. | 104 // Update the title color to match the tabs current state. |
105 - (void)updateTitleColor; | 105 - (void)updateTitleColor; |
| 106 |
| 107 // Sets the maximum number of characters that can be truncated from the |
| 108 // beginning of the title. This is used to remove a common prefix among multiple |
| 109 // tabs. |
| 110 - (void)setTitleCommonPrefixLength:(NSUInteger)length; |
106 @end | 111 @end |
107 | 112 |
108 @interface TabController(TestingAPI) | 113 @interface TabController(TestingAPI) |
109 - (NSString*)toolTip; | 114 - (NSString*)toolTip; |
110 - (int)iconCapacity; | 115 - (int)iconCapacity; |
111 - (BOOL)shouldShowIcon; | 116 - (BOOL)shouldShowIcon; |
112 - (BOOL)shouldShowCloseButton; | 117 - (BOOL)shouldShowCloseButton; |
113 @end // TabController(TestingAPI) | 118 @end // TabController(TestingAPI) |
114 | 119 |
115 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 120 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |