| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #import "chrome/browser/ui/cocoa/hover_close_button.h" | 10 #import "chrome/browser/ui/cocoa/hover_close_button.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // status/focus of the content. | 75 // status/focus of the content. |
| 76 @property(assign, nonatomic) BOOL active; | 76 @property(assign, nonatomic) BOOL active; |
| 77 @property(assign, nonatomic) BOOL selected; | 77 @property(assign, nonatomic) BOOL selected; |
| 78 @property(assign, nonatomic) id target; | 78 @property(assign, nonatomic) id target; |
| 79 @property(assign, nonatomic) GURL url; | 79 @property(assign, nonatomic) GURL url; |
| 80 @property(readonly, nonatomic) NSView* iconView; | 80 @property(readonly, nonatomic) NSView* iconView; |
| 81 @property(assign, nonatomic) MediaIndicatorView* mediaIndicatorView; | 81 @property(assign, nonatomic) MediaIndicatorView* mediaIndicatorView; |
| 82 @property(readonly, nonatomic) HoverCloseButton* closeButton; | 82 @property(readonly, nonatomic) HoverCloseButton* closeButton; |
| 83 | 83 |
| 84 // Minimum and maximum allowable tab width. The minimum width does not show | 84 // Minimum and maximum allowable tab width. The minimum width does not show |
| 85 // the icon or the close button. The selected tab always has at least a close | 85 // the icon or the close button. The active tab always has at least a close |
| 86 // button so it has a different minimum width. | 86 // button so it has a different minimum width. |
| 87 + (CGFloat)minTabWidth; | 87 + (CGFloat)minTabWidth; |
| 88 + (CGFloat)maxTabWidth; | 88 + (CGFloat)maxTabWidth; |
| 89 + (CGFloat)minSelectedTabWidth; | 89 + (CGFloat)minActiveTabWidth; |
| 90 + (CGFloat)miniTabWidth; | 90 + (CGFloat)miniTabWidth; |
| 91 + (CGFloat)appTabWidth; | 91 + (CGFloat)appTabWidth; |
| 92 | 92 |
| 93 // The view associated with this controller, pre-casted as a TabView | 93 // The view associated with this controller, pre-casted as a TabView |
| 94 - (TabView*)tabView; | 94 - (TabView*)tabView; |
| 95 | 95 |
| 96 // Sets the tab's icon image. | 96 // Sets the tab's icon image. |
| 97 // |image| must be 16x16 in size. | 97 // |image| must be 16x16 in size. |
| 98 // |image| can be a horizontal strip of image sprites which will be animated. | 98 // |image| can be a horizontal strip of image sprites which will be animated. |
| 99 // Setting |animate| to YES will animate away the old image before animating | 99 // Setting |animate| to YES will animate away the old image before animating |
| (...skipping 23 matching lines...) Expand all Loading... |
| 123 @end | 123 @end |
| 124 | 124 |
| 125 @interface TabController(TestingAPI) | 125 @interface TabController(TestingAPI) |
| 126 - (int)iconCapacity; | 126 - (int)iconCapacity; |
| 127 - (BOOL)shouldShowIcon; | 127 - (BOOL)shouldShowIcon; |
| 128 - (BOOL)shouldShowMediaIndicator; | 128 - (BOOL)shouldShowMediaIndicator; |
| 129 - (BOOL)shouldShowCloseButton; | 129 - (BOOL)shouldShowCloseButton; |
| 130 @end // TabController(TestingAPI) | 130 @end // TabController(TestingAPI) |
| 131 | 131 |
| 132 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 132 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
| OLD | NEW |