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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_controller.h

Issue 476313003: Mac: Improve tab strip layout in case of overflow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #import "chrome/browser/ui/cocoa/hover_close_button.h" 10 #import "chrome/browser/ui/cocoa/hover_close_button.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // status/focus of the content. 75 // status/focus of the content.
76 @property(assign, nonatomic) BOOL active; 76 @property(assign, nonatomic) BOOL active;
77 @property(assign, nonatomic) BOOL selected; 77 @property(assign, nonatomic) BOOL selected;
78 @property(assign, nonatomic) id target; 78 @property(assign, nonatomic) id target;
79 @property(assign, nonatomic) GURL url; 79 @property(assign, nonatomic) GURL url;
80 @property(readonly, nonatomic) NSView* iconView; 80 @property(readonly, nonatomic) NSView* iconView;
81 @property(assign, nonatomic) MediaIndicatorView* mediaIndicatorView; 81 @property(assign, nonatomic) MediaIndicatorView* mediaIndicatorView;
82 @property(readonly, nonatomic) HoverCloseButton* closeButton; 82 @property(readonly, nonatomic) HoverCloseButton* closeButton;
83 83
84 // Minimum and maximum allowable tab width. The minimum width does not show 84 // Minimum and maximum allowable tab width. The minimum width does not show
85 // the icon or the close button. The selected tab always has at least a close 85 // the icon or the close button. The active tab always has at least a close
86 // button so it has a different minimum width. 86 // button so it has a different minimum width.
87 + (CGFloat)minTabWidth; 87 + (CGFloat)minTabWidth;
88 + (CGFloat)maxTabWidth; 88 + (CGFloat)maxTabWidth;
89 + (CGFloat)minSelectedTabWidth; 89 + (CGFloat)minActiveTabWidth;
90 + (CGFloat)miniTabWidth; 90 + (CGFloat)miniTabWidth;
91 + (CGFloat)appTabWidth; 91 + (CGFloat)appTabWidth;
92 92
93 // The view associated with this controller, pre-casted as a TabView 93 // The view associated with this controller, pre-casted as a TabView
94 - (TabView*)tabView; 94 - (TabView*)tabView;
95 95
96 // Sets the tab's icon image. 96 // Sets the tab's icon image.
97 // |image| must be 16x16 in size. 97 // |image| must be 16x16 in size.
98 // |image| can be a horizontal strip of image sprites which will be animated. 98 // |image| can be a horizontal strip of image sprites which will be animated.
99 // Setting |animate| to YES will animate away the old image before animating 99 // Setting |animate| to YES will animate away the old image before animating
(...skipping 23 matching lines...) Expand all
123 @end 123 @end
124 124
125 @interface TabController(TestingAPI) 125 @interface TabController(TestingAPI)
126 - (int)iconCapacity; 126 - (int)iconCapacity;
127 - (BOOL)shouldShowIcon; 127 - (BOOL)shouldShowIcon;
128 - (BOOL)shouldShowMediaIndicator; 128 - (BOOL)shouldShowMediaIndicator;
129 - (BOOL)shouldShowCloseButton; 129 - (BOOL)shouldShowCloseButton;
130 @end // TabController(TestingAPI) 130 @end // TabController(TestingAPI)
131 131
132 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ 132 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698