| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 @class TabView; |
| 11 |
| 12 // A class that manages a single tab in the tab strip. Set its target/action |
| 13 // to be sent a message when the tab is selected by the user clicking. Setting |
| 14 // the |loading| property to YES visually indicates that this tab is currently |
| 15 // loading content via a spinner. |
| 16 |
| 17 @interface TabController : NSViewController { |
| 18 @private |
| 19 IBOutlet NSButton *backgroundButton_; |
| 20 IBOutlet NSButton *closeButton_; |
| 21 IBOutlet NSProgressIndicator *progressIndicator_; |
| 22 BOOL selected_; |
| 23 BOOL loading_; |
| 24 NSImage *image_; |
| 25 id target_; // weak, where actions are sent, eg selectTab: |
| 26 SEL action_; // selector sent when tab is seleted by clicking |
| 27 } |
| 28 |
| 29 @property(retain, nonatomic) NSImage *image; |
| 30 @property(assign, nonatomic) BOOL selected; |
| 31 @property(assign, nonatomic) BOOL loading; |
| 32 @property(assign, nonatomic) id target; |
| 33 @property(assign, nonatomic) SEL action; |
| 34 |
| 35 // Minimum and maximum allowable tab width. |
| 36 + (float)minTabWidth; |
| 37 + (float)maxTabWidth; |
| 38 |
| 39 // The view associated with this controller, pre-casted as a TabView |
| 40 - (TabView *)tabView; |
| 41 |
| 42 @end |
| 43 |
| 44 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| OLD | NEW |