| 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 #import "chrome/browser/cocoa/tab_window_controller.h" | 5 #import "chrome/browser/cocoa/tab_window_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "chrome/browser/cocoa/tab_strip_view.h" | 8 #import "chrome/browser/cocoa/tab_strip_view.h" |
| 9 | 9 |
| 10 @interface TabWindowController(PRIVATE) | 10 @interface TabWindowController(PRIVATE) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 - (void)insertPlaceholderForTab:(TabView*)tab | 148 - (void)insertPlaceholderForTab:(TabView*)tab |
| 149 frame:(NSRect)frame | 149 frame:(NSRect)frame |
| 150 yStretchiness:(CGFloat)yStretchiness { | 150 yStretchiness:(CGFloat)yStretchiness { |
| 151 [self showNewTabButton:NO]; | 151 [self showNewTabButton:NO]; |
| 152 } | 152 } |
| 153 | 153 |
| 154 - (void)removePlaceholder { | 154 - (void)removePlaceholder { |
| 155 [self showNewTabButton:YES]; | 155 [self showNewTabButton:YES]; |
| 156 } | 156 } |
| 157 | 157 |
| 158 - (BOOL)isTabFullyVisible:(TabView*)tab { |
| 159 // Subclasses should implement this, but it's not necessary. |
| 160 return YES; |
| 161 } |
| 162 |
| 158 - (void)showNewTabButton:(BOOL)show { | 163 - (void)showNewTabButton:(BOOL)show { |
| 159 // subclass must implement | 164 // subclass must implement |
| 160 NOTIMPLEMENTED(); | 165 NOTIMPLEMENTED(); |
| 161 } | 166 } |
| 162 | 167 |
| 163 - (void)detachTabView:(NSView*)view { | 168 - (void)detachTabView:(NSView*)view { |
| 164 // subclass must implement | 169 // subclass must implement |
| 165 NOTIMPLEMENTED(); | 170 NOTIMPLEMENTED(); |
| 166 } | 171 } |
| 167 | 172 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 188 } | 193 } |
| 189 | 194 |
| 190 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable { | 195 - (void)setTab:(NSView*)tabView isDraggable:(BOOL)draggable { |
| 191 if (draggable) | 196 if (draggable) |
| 192 [lockedTabs_ removeObject:tabView]; | 197 [lockedTabs_ removeObject:tabView]; |
| 193 else | 198 else |
| 194 [lockedTabs_ addObject:tabView]; | 199 [lockedTabs_ addObject:tabView]; |
| 195 } | 200 } |
| 196 | 201 |
| 197 @end | 202 @end |
| OLD | NEW |