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

Side by Side Diff: chrome/browser/cocoa/tab_strip_controller.h

Issue 260009: Several background pattern fixes on the Mac.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/browser/cocoa/tab_controller.mm ('k') | chrome/browser/cocoa/tab_strip_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Initialize the controller with a view and browser that contains 87 // Initialize the controller with a view and browser that contains
88 // everything else we'll need. |switchView| is the view whose contents get 88 // everything else we'll need. |switchView| is the view whose contents get
89 // "switched" every time the user switches tabs. The children of this view 89 // "switched" every time the user switches tabs. The children of this view
90 // will be released, so if you want them to stay around, make sure 90 // will be released, so if you want them to stay around, make sure
91 // you have retained them. 91 // you have retained them.
92 - (id)initWithView:(TabStripView*)view 92 - (id)initWithView:(TabStripView*)view
93 switchView:(NSView*)switchView 93 switchView:(NSView*)switchView
94 browser:(Browser*)browser; 94 browser:(Browser*)browser;
95 95
96 // Return the view for the currently selected tab. 96 // Return the view for the currently selected tab.
97 - (NSView *)selectedTabView; 97 - (NSView*)selectedTabView;
98 98
99 // Set the frame of the selected tab, also updates the internal frame dict. 99 // Set the frame of the selected tab, also updates the internal frame dict.
100 - (void)setFrameOfSelectedTab:(NSRect)frame; 100 - (void)setFrameOfSelectedTab:(NSRect)frame;
101 101
102 // Move the given tab at index |from| in this window to the location of the 102 // Move the given tab at index |from| in this window to the location of the
103 // current placeholder. 103 // current placeholder.
104 - (void)moveTabFromIndex:(NSInteger)from; 104 - (void)moveTabFromIndex:(NSInteger)from;
105 105
106 // Drop a given TabContents at the location of the current placeholder. If there 106 // Drop a given TabContents at the location of the current placeholder. If there
107 // is no placeholder, it will go at the end. Used when dragging from another 107 // is no placeholder, it will go at the end. Used when dragging from another
(...skipping 18 matching lines...) Expand all
126 // is visible. 126 // is visible.
127 - (BOOL)isTabFullyVisible:(TabView*)tab; 127 - (BOOL)isTabFullyVisible:(TabView*)tab;
128 128
129 // Show or hide the new tab button. The button is hidden immediately, but 129 // Show or hide the new tab button. The button is hidden immediately, but
130 // waits until the next call to |-layoutTabs| to show it again. 130 // waits until the next call to |-layoutTabs| to show it again.
131 - (void)showNewTabButton:(BOOL)show; 131 - (void)showNewTabButton:(BOOL)show;
132 132
133 // Force the tabs to rearrange themselves to reflect the current model. 133 // Force the tabs to rearrange themselves to reflect the current model.
134 - (void)layoutTabs; 134 - (void)layoutTabs;
135 135
136 // The user changed the theme, or theme state changed.
137 - (void)applyTheme;
138
139 // Are we in rapid (tab) closure mode? I.e., is a full layout deferred (while 136 // Are we in rapid (tab) closure mode? I.e., is a full layout deferred (while
140 // the user closes tabs)? Needed to overcome missing clicks during rapid tab 137 // the user closes tabs)? Needed to overcome missing clicks during rapid tab
141 // closure. 138 // closure.
142 - (BOOL)inRapidClosureMode; 139 - (BOOL)inRapidClosureMode;
143 140
144 // Default height for tabs. 141 // Default height for tabs.
145 + (CGFloat)defaultTabHeight; 142 + (CGFloat)defaultTabHeight;
146 143
147 // Returns the (lazily created) window sheet controller of this window. Used 144 // Returns the (lazily created) window sheet controller of this window. Used
148 // for the per-tab sheets. 145 // for the per-tab sheets.
149 - (GTMWindowSheetController*)sheetController; 146 - (GTMWindowSheetController*)sheetController;
150 147
151 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; 148 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
152 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; 149 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
153 150
154 @end 151 @end
155 152
156 // Notification sent when the number of tabs changes. The object will be this 153 // Notification sent when the number of tabs changes. The object will be this
157 // controller. 154 // controller.
158 extern NSString* const kTabStripNumberOfTabsChanged; 155 extern NSString* const kTabStripNumberOfTabsChanged;
159 156
160 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ 157 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_controller.mm ('k') | chrome/browser/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698