| 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 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #import "chrome/browser/cocoa/hover_close_button.h" | 9 #import "chrome/browser/cocoa/hover_close_button.h" |
| 10 #include "chrome/browser/tab_menu_model.h" | 10 #include "chrome/browser/tab_menu_model.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // view, something with state and animation such as a throbber for illustrating | 38 // view, something with state and animation such as a throbber for illustrating |
| 39 // progress. The default in the nib is an image view so nothing special is | 39 // progress. The default in the nib is an image view so nothing special is |
| 40 // required if that's all you need. | 40 // required if that's all you need. |
| 41 | 41 |
| 42 @interface TabController : NSViewController { | 42 @interface TabController : NSViewController { |
| 43 @private | 43 @private |
| 44 IBOutlet NSView* iconView_; | 44 IBOutlet NSView* iconView_; |
| 45 IBOutlet NSTextField* titleView_; | 45 IBOutlet NSTextField* titleView_; |
| 46 IBOutlet HoverCloseButton* closeButton_; | 46 IBOutlet HoverCloseButton* closeButton_; |
| 47 | 47 |
| 48 NSRect originalIconFrame_; // frame of iconView_ as loaded from nib | 48 // NSRect originalIconFrame_; // frame of iconView_ as loaded from nib |
| 49 BOOL isIconShowing_; // last state of iconView_ in updateVisibility | 49 BOOL isIconShowing_; // last state of iconView_ in updateVisibility |
| 50 BOOL selected_; | 50 BOOL selected_; |
| 51 BOOL pinned_; | 51 BOOL pinned_; |
| 52 TabLoadingState loadingState_; | 52 TabLoadingState loadingState_; |
| 53 CGFloat iconTitleXOffset_; // between left edges of icon and title | 53 CGFloat iconTitleXOffset_; // between left edges of icon and title |
| 54 CGFloat titleCloseWidthOffset_; // between right edges of icon and close btn. | 54 CGFloat titleCloseWidthOffset_; // between right edges of icon and close btn. |
| 55 id<TabControllerTarget> target_; // weak, where actions are sent | 55 id<TabControllerTarget> target_; // weak, where actions are sent |
| 56 SEL action_; // selector sent when tab is selected by clicking | 56 SEL action_; // selector sent when tab is selected by clicking |
| 57 scoped_ptr<TabMenuModel> contextMenuModel_; | 57 scoped_ptr<TabMenuModel> contextMenuModel_; |
| 58 scoped_ptr<TabControllerInternal::MenuDelegate> contextMenuDelegate_; | 58 scoped_ptr<TabControllerInternal::MenuDelegate> contextMenuDelegate_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 @end | 101 @end |
| 102 | 102 |
| 103 @interface TabController(TestingAPI) | 103 @interface TabController(TestingAPI) |
| 104 - (NSString*)toolTip; | 104 - (NSString*)toolTip; |
| 105 - (int)iconCapacity; | 105 - (int)iconCapacity; |
| 106 - (BOOL)shouldShowIcon; | 106 - (BOOL)shouldShowIcon; |
| 107 - (BOOL)shouldShowCloseButton; | 107 - (BOOL)shouldShowCloseButton; |
| 108 @end // TabController(TestingAPI) | 108 @end // TabController(TestingAPI) |
| 109 | 109 |
| 110 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ | 110 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ |
| OLD | NEW |