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

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

Issue 385106: [Mac] Fix weird layout issues when dragging a tab from a large screen to a sm... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 #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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 cachedContentView_ = nil; 118 cachedContentView_ = nil;
119 } else { 119 } else {
120 NOTREACHED(); 120 NOTREACHED();
121 } 121 }
122 } 122 }
123 123
124 - (NSWindow*)overlayWindow { 124 - (NSWindow*)overlayWindow {
125 return overlayWindow_; 125 return overlayWindow_;
126 } 126 }
127 127
128 - (BOOL)shouldConstrainFrameRect {
129 // If we currently have an overlay window, do not attempt to change the
130 // window's size, as our overlay window doesn't know how to resize properly.
131 return overlayWindow_ == nil;
132 }
133
128 - (BOOL)canReceiveFrom:(TabWindowController*)source { 134 - (BOOL)canReceiveFrom:(TabWindowController*)source {
129 // subclass must implement 135 // subclass must implement
130 NOTIMPLEMENTED(); 136 NOTIMPLEMENTED();
131 return NO; 137 return NO;
132 } 138 }
133 139
134 - (void)moveTabView:(NSView*)view 140 - (void)moveTabView:(NSView*)view
135 fromController:(TabWindowController*)dragController { 141 fromController:(TabWindowController*)dragController {
136 NOTIMPLEMENTED(); 142 NOTIMPLEMENTED();
137 } 143 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 217 }
212 218
213 // Tell the window that it needs to call performClose: as soon as the current 219 // Tell the window that it needs to call performClose: as soon as the current
214 // drag is complete. This prevents a window (and its overlay) from going away 220 // drag is complete. This prevents a window (and its overlay) from going away
215 // during a drag. 221 // during a drag.
216 - (void)deferPerformClose { 222 - (void)deferPerformClose {
217 closeDeferred_ = YES; 223 closeDeferred_ = YES;
218 } 224 }
219 225
220 @end 226 @end
OLDNEW
« chrome/browser/cocoa/chrome_browser_window.mm ('K') | « 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