Chromium Code Reviews| 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/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 Loading... | |
| 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 |
| OLD | NEW |