| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 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 - (void)layoutTabs; | 99 - (void)layoutTabs; |
| 100 | 100 |
| 101 // The user changed the theme. | 101 // The user changed the theme. |
| 102 - (void)userChangedTheme; | 102 - (void)userChangedTheme; |
| 103 | 103 |
| 104 // Default height for tabs. | 104 // Default height for tabs. |
| 105 + (CGFloat)defaultTabHeight; | 105 + (CGFloat)defaultTabHeight; |
| 106 @end | 106 @end |
| 107 | 107 |
| 108 // Notification sent when the number of tabs changes. The object will be this | 108 // Notification sent when the number of tabs changes. The object will be this |
| 109 // controller. | 109 // controller. |
| 110 extern NSString* const kTabStripNumberOfTabsChanged; | 110 extern NSString* const kTabStripNumberOfTabsChanged; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ | 112 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |