OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ui/cocoa/framed_browser_window.h" | 5 #import "chrome/browser/ui/cocoa/framed_browser_window.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/global_keyboard_shortcuts_mac.h" | 8 #include "chrome/browser/global_keyboard_shortcuts_mac.h" |
9 #import "chrome/browser/ui/cocoa/browser_frame_view.h" | 9 #import "chrome/browser/ui/cocoa/browser_frame_view.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #import "chrome/browser/ui/cocoa/tab_strip_controller.h" | 11 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
12 #import "chrome/browser/ui/cocoa/themed_window.h" | 12 #import "chrome/browser/ui/cocoa/themed_window.h" |
13 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 13 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
14 #include "chrome/browser/themes/browser_theme_provider.h" | 14 #include "chrome/browser/themes/browser_theme_provider.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 // Size of the gradient. Empirically determined so that the gradient looks | 17 // Size of the gradient. Empirically determined so that the gradient looks |
18 // like what the heuristic does when there are just a few tabs. | 18 // like what the heuristic does when there are just a few tabs. |
19 const CGFloat kWindowGradientHeight = 24.0; | 19 const CGFloat kWindowGradientHeight = 24.0; |
20 } | 20 } |
21 | 21 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // return the original (unconstrained) frame. | 344 // return the original (unconstrained) frame. |
345 id delegate = [self delegate]; | 345 id delegate = [self delegate]; |
346 if ([delegate respondsToSelector:@selector(shouldConstrainFrameRect)] && | 346 if ([delegate respondsToSelector:@selector(shouldConstrainFrameRect)] && |
347 ![delegate shouldConstrainFrameRect]) | 347 ![delegate shouldConstrainFrameRect]) |
348 return frame; | 348 return frame; |
349 | 349 |
350 return [super constrainFrameRect:frame toScreen:screen]; | 350 return [super constrainFrameRect:frame toScreen:screen]; |
351 } | 351 } |
352 | 352 |
353 @end | 353 @end |
OLD | NEW |