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

Side by Side Diff: chrome/browser/cocoa/tab_window_controller.mm

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
« no previous file with comments | « chrome/browser/cocoa/tab_window_controller.h ('k') | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_window_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698