OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 | 44 |
45 NSRect originalIconFrame_; // frame of iconView_ as loaded from nib | 45 NSRect originalIconFrame_; // frame of iconView_ as loaded from nib |
46 BOOL isIconShowing_; // last state of iconView_ in updateVisibility | 46 BOOL isIconShowing_; // last state of iconView_ in updateVisibility |
47 | 47 |
48 BOOL app_; | 48 BOOL app_; |
49 BOOL mini_; | 49 BOOL mini_; |
50 BOOL pinned_; | 50 BOOL pinned_; |
51 BOOL selected_; | 51 BOOL selected_; |
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. | |
55 id<TabControllerTarget> target_; // weak, where actions are sent | 54 id<TabControllerTarget> target_; // weak, where actions are sent |
56 SEL action_; // selector sent when tab is selected by clicking | 55 SEL action_; // selector sent when tab is selected by clicking |
57 scoped_ptr<TabMenuModel> contextMenuModel_; | 56 scoped_ptr<TabMenuModel> contextMenuModel_; |
58 scoped_ptr<TabControllerInternal::MenuDelegate> contextMenuDelegate_; | 57 scoped_ptr<TabControllerInternal::MenuDelegate> contextMenuDelegate_; |
59 scoped_nsobject<MenuController> contextMenuController_; | 58 scoped_nsobject<MenuController> contextMenuController_; |
60 } | 59 } |
61 | 60 |
62 @property(assign, nonatomic) TabLoadingState loadingState; | 61 @property(assign, nonatomic) TabLoadingState loadingState; |
63 | 62 |
64 @property(assign, nonatomic) SEL action; | 63 @property(assign, nonatomic) SEL action; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 | 100 |
102 // Update the title color to match the tabs current state. | 101 // Update the title color to match the tabs current state. |
103 - (void)updateTitleColor; | 102 - (void)updateTitleColor; |
104 @end | 103 @end |
105 | 104 |
106 @interface TabController(TestingAPI) | 105 @interface TabController(TestingAPI) |
107 - (NSString*)toolTip; | 106 - (NSString*)toolTip; |
108 - (int)iconCapacity; | 107 - (int)iconCapacity; |
109 - (BOOL)shouldShowIcon; | 108 - (BOOL)shouldShowIcon; |
110 - (BOOL)shouldShowCloseButton; | 109 - (BOOL)shouldShowCloseButton; |
110 - (NSTextField*)titleView; | |
viettrungluu
2010/12/14 00:19:50
Maybe we should just use |@property|s for these?
sail
2010/12/14 01:59:53
Done.
| |
111 - (HoverCloseButton*)closeButton; | |
111 @end // TabController(TestingAPI) | 112 @end // TabController(TestingAPI) |
112 | 113 |
113 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_H_ | 114 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_H_ |
OLD | NEW |