| OLD | NEW |
| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // return the view at a given index | 89 // return the view at a given index |
| 90 - (NSView*)viewAtIndex:(NSUInteger)index; | 90 - (NSView*)viewAtIndex:(NSUInteger)index; |
| 91 | 91 |
| 92 // Set the placeholder for a dragged tab, allowing the |frame| and |strechiness| | 92 // Set the placeholder for a dragged tab, allowing the |frame| and |strechiness| |
| 93 // to be specified. This causes this tab to be rendered in an arbitrary position | 93 // to be specified. This causes this tab to be rendered in an arbitrary position |
| 94 - (void)insertPlaceholderForTab:(TabView*)tab | 94 - (void)insertPlaceholderForTab:(TabView*)tab |
| 95 frame:(NSRect)frame | 95 frame:(NSRect)frame |
| 96 yStretchiness:(CGFloat)yStretchiness; | 96 yStretchiness:(CGFloat)yStretchiness; |
| 97 | 97 |
| 98 // Force the tabs to rearrange themselves to reflect the current model | 98 // Force the tabs to rearrange themselves to reflect the current model |
| 99 // (with or without animations). |
| 99 - (void)layoutTabs; | 100 - (void)layoutTabs; |
| 101 - (void)layoutTabsFast; |
| 100 | 102 |
| 101 // The user changed the theme. | 103 // The user changed the theme. |
| 102 - (void)userChangedTheme; | 104 - (void)userChangedTheme; |
| 103 | 105 |
| 104 // Default height for tabs. | 106 // Default height for tabs. |
| 105 + (CGFloat)defaultTabHeight; | 107 + (CGFloat)defaultTabHeight; |
| 106 @end | 108 @end |
| 107 | 109 |
| 108 // Notification sent when the number of tabs changes. The object will be this | 110 // Notification sent when the number of tabs changes. The object will be this |
| 109 // controller. | 111 // controller. |
| 110 extern NSString* const kTabStripNumberOfTabsChanged; | 112 extern NSString* const kTabStripNumberOfTabsChanged; |
| 111 | 113 |
| 112 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 114 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |