| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // view, something with state and animation such as a throbber for illustrating | 42 // view, something with state and animation such as a throbber for illustrating |
| 43 // progress. The default in the nib is an image view so nothing special is | 43 // progress. The default in the nib is an image view so nothing special is |
| 44 // required if that's all you need. | 44 // required if that's all you need. |
| 45 | 45 |
| 46 @interface TabController : NSViewController<TabDraggingEventTarget> { | 46 @interface TabController : NSViewController<TabDraggingEventTarget> { |
| 47 @private | 47 @private |
| 48 base::scoped_nsobject<SpriteView> iconView_; | 48 base::scoped_nsobject<SpriteView> iconView_; |
| 49 base::scoped_nsobject<AlertIndicatorButton> alertIndicatorButton_; | 49 base::scoped_nsobject<AlertIndicatorButton> alertIndicatorButton_; |
| 50 base::scoped_nsobject<HoverCloseButton> closeButton_; | 50 base::scoped_nsobject<HoverCloseButton> closeButton_; |
| 51 | 51 |
| 52 NSRect originalIconFrame_; // frame of iconView_ as loaded from nib | |
| 53 BOOL isIconShowing_; // last state of iconView_ in updateVisibility | 52 BOOL isIconShowing_; // last state of iconView_ in updateVisibility |
| 54 | 53 |
| 55 BOOL pinned_; | 54 BOOL pinned_; |
| 56 BOOL active_; | 55 BOOL active_; |
| 57 BOOL selected_; | 56 BOOL selected_; |
| 58 GURL url_; | 57 GURL url_; |
| 59 TabLoadingState loadingState_; | 58 TabLoadingState loadingState_; |
| 60 id<TabControllerTarget> target_; // weak, where actions are sent | 59 id<TabControllerTarget> target_; // weak, where actions are sent |
| 61 SEL action_; // selector sent when tab is selected by clicking | 60 SEL action_; // selector sent when tab is selected by clicking |
| 62 std::unique_ptr<ui::SimpleMenuModel> contextMenuModel_; | 61 std::unique_ptr<ui::SimpleMenuModel> contextMenuModel_; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 @end | 126 @end |
| 128 | 127 |
| 129 @interface TabController(TestingAPI) | 128 @interface TabController(TestingAPI) |
| 130 - (int)iconCapacity; | 129 - (int)iconCapacity; |
| 131 - (BOOL)shouldShowIcon; | 130 - (BOOL)shouldShowIcon; |
| 132 - (BOOL)shouldShowAlertIndicator; | 131 - (BOOL)shouldShowAlertIndicator; |
| 133 - (BOOL)shouldShowCloseButton; | 132 - (BOOL)shouldShowCloseButton; |
| 134 @end // TabController(TestingAPI) | 133 @end // TabController(TestingAPI) |
| 135 | 134 |
| 136 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ | 135 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ |
| OLD | NEW |