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

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

Issue 195043: Start a drag if the tab is dragged off the sides of the window.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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) 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // return the view at a given index 114 // return the view at a given index
115 - (NSView*)viewAtIndex:(NSUInteger)index; 115 - (NSView*)viewAtIndex:(NSUInteger)index;
116 116
117 // Set the placeholder for a dragged tab, allowing the |frame| and |strechiness| 117 // Set the placeholder for a dragged tab, allowing the |frame| and |strechiness|
118 // to be specified. This causes this tab to be rendered in an arbitrary position 118 // to be specified. This causes this tab to be rendered in an arbitrary position
119 - (void)insertPlaceholderForTab:(TabView*)tab 119 - (void)insertPlaceholderForTab:(TabView*)tab
120 frame:(NSRect)frame 120 frame:(NSRect)frame
121 yStretchiness:(CGFloat)yStretchiness; 121 yStretchiness:(CGFloat)yStretchiness;
122 122
123 // Returns whether or not |tab| can still be fully seen in the tab strip or if
124 // its current position would cause it be obscured by things such as the edge
125 // of the window or the window decorations. Returns YES only if the entire tab
126 // is visible.
127 - (BOOL)isTabFullyVisible:(TabView*)tab;
128
123 // 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
124 // waits until the next call to |-layoutTabs| to show it again. 130 // waits until the next call to |-layoutTabs| to show it again.
125 - (void)showNewTabButton:(BOOL)show; 131 - (void)showNewTabButton:(BOOL)show;
126 132
127 // Force the tabs to rearrange themselves to reflect the current model. 133 // Force the tabs to rearrange themselves to reflect the current model.
128 - (void)layoutTabs; 134 - (void)layoutTabs;
129 135
130 // The user changed the theme, or theme state changed. 136 // The user changed the theme, or theme state changed.
131 - (void)applyTheme; 137 - (void)applyTheme;
132 138
(...skipping 12 matching lines...) Expand all
145 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window; 151 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
146 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window; 152 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
147 153
148 @end 154 @end
149 155
150 // Notification sent when the number of tabs changes. The object will be this 156 // Notification sent when the number of tabs changes. The object will be this
151 // controller. 157 // controller.
152 extern NSString* const kTabStripNumberOfTabsChanged; 158 extern NSString* const kTabStripNumberOfTabsChanged;
153 159
154 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ 160 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_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