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

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

Issue 6688050: Mac: Elides the beginning of tab titles that have common prefixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « DEPS ('k') | chrome/browser/ui/cocoa/tabs/tab_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #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"
11 #include "chrome/browser/ui/tabs/tab_menu_model.h" 11 #include "chrome/browser/ui/tabs/tab_menu_model.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Ideally, tabs would know about their own animation and wouldn't need this. 96 // Ideally, tabs would know about their own animation and wouldn't need this.
97 - (BOOL)inRapidClosureMode; 97 - (BOOL)inRapidClosureMode;
98 98
99 // Updates the visibility of certain subviews, such as the icon and close 99 // Updates the visibility of certain subviews, such as the icon and close
100 // button, based on criteria such as the tab's selected state and its current 100 // button, based on criteria such as the tab's selected state and its current
101 // width. 101 // width.
102 - (void)updateVisibility; 102 - (void)updateVisibility;
103 103
104 // Update the title color to match the tabs current state. 104 // Update the title color to match the tabs current state.
105 - (void)updateTitleColor; 105 - (void)updateTitleColor;
106
107 // Sets the maximum number of characters that can be truncated from the
108 // beginning of the title. This is used to remove a common prefix among multiple
109 // tabs.
110 - (void)setTitleCommonPrefixLength:(NSUInteger)length;
106 @end 111 @end
107 112
108 @interface TabController(TestingAPI) 113 @interface TabController(TestingAPI)
109 - (NSString*)toolTip; 114 - (NSString*)toolTip;
110 - (int)iconCapacity; 115 - (int)iconCapacity;
111 - (BOOL)shouldShowIcon; 116 - (BOOL)shouldShowIcon;
112 - (BOOL)shouldShowCloseButton; 117 - (BOOL)shouldShowCloseButton;
113 @end // TabController(TestingAPI) 118 @end // TabController(TestingAPI)
114 119
115 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_ 120 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | chrome/browser/ui/cocoa/tabs/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698