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

Side by Side Diff: chrome/browser/ui/cocoa/framed_browser_window.mm

Issue 6362007: [Mac] Organize all tab/tab strip files into chrome/browser/ui/cocoa/tabs/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm ('k') | chrome/browser/ui/cocoa/side_tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698