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

Side by Side Diff: chrome/browser/cocoa/chrome_browser_window.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
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_window_controller.h » ('j') | 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/chrome_browser_window.h" 5 #import "chrome/browser/cocoa/chrome_browser_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "chrome/browser/cocoa/browser_window_controller.h" 8 #import "chrome/browser/cocoa/browser_window_controller.h"
9 #import "chrome/browser/cocoa/browser_frame_view.h" 9 #import "chrome/browser/cocoa/browser_frame_view.h"
10 #import "chrome/browser/cocoa/tab_strip_controller.h" 10 #import "chrome/browser/cocoa/tab_strip_controller.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 - (void)setShouldHideTitle:(BOOL)flag { 324 - (void)setShouldHideTitle:(BOOL)flag {
325 shouldHideTitle_ = flag; 325 shouldHideTitle_ = flag;
326 } 326 }
327 327
328 -(BOOL)_isTitleHidden { 328 -(BOOL)_isTitleHidden {
329 return shouldHideTitle_; 329 return shouldHideTitle_;
330 } 330 }
331 331
332 - (NSRect)constrainFrameRect:(NSRect)frame toScreen:(NSScreen*)screen {
pink (ping after 24hrs) 2009/11/13 22:09:57 add a comment on when and why this gets called.
333 // Do not constrain the frame rect if our delegate says no. In this case,
334 // return the original (unconstrained) frame.
335 id delegate = [self delegate];
336 if ([delegate respondsToSelector:@selector(shouldConstrainFrameRect)] &&
337 ![delegate shouldConstrainFrameRect])
338 return frame;
339
340 return [super constrainFrameRect:frame toScreen:screen];
341 }
342
332 @end 343 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698