Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: chrome/browser/cocoa/tab_controller.h

Issue 661265: P2.1a.
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/hover_close_button.mm ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_controller.h
diff --git a/chrome/browser/cocoa/tab_controller.h b/chrome/browser/cocoa/tab_controller.h
index 06d58c87ce252df496dd229fae8e8848cd2236c8..8b27dd7a31cdf074c7c69ae03f0ea09e3c39b7f6 100644
--- a/chrome/browser/cocoa/tab_controller.h
+++ b/chrome/browser/cocoa/tab_controller.h
@@ -40,6 +40,7 @@ class MenuDelegate;
IBOutlet NSView* iconView_;
IBOutlet NSTextField* titleView_;
IBOutlet HoverCloseButton* closeButton_;
+ NSTimeInterval closeButtonRevealTime_;
NSRect originalIconFrame_; // frame of iconView_ as loaded from nib
BOOL isIconShowing_; // last state of iconView_ in updateVisibility
@@ -47,7 +48,7 @@ class MenuDelegate;
BOOL pinned_;
TabLoadingState loadingState_;
CGFloat iconTitleXOffset_; // between left edges of icon and title
- CGFloat titleCloseWidthOffset_; // between right edges of icon and close btn.
+ CGFloat titleTabOffset_; // between right edge of title and tab end
id<TabControllerTarget> target_; // weak, where actions are sent
SEL action_; // selector sent when tab is selected by clicking
scoped_ptr<TabMenuModel> contextMenuModel_;
@@ -94,13 +95,13 @@ class MenuDelegate;
// Update the title color to match the tabs current state.
- (void)updateTitleColor;
+
+- (BOOL)closeButtonActive;
@end
@interface TabController(TestingAPI)
- (NSString*)toolTip;
- (int)iconCapacity;
-- (BOOL)shouldShowIcon;
-- (BOOL)shouldShowCloseButton;
@end // TabController(TestingAPI)
#endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
« no previous file with comments | « chrome/browser/cocoa/hover_close_button.mm ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698