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

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

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
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 #include "chrome/browser/browser_theme_provider.h"
9 #import "chrome/browser/cocoa/browser_frame_view.h" 8 #import "chrome/browser/cocoa/browser_frame_view.h"
10 #import "chrome/browser/cocoa/browser_window_controller.h" 9 #import "chrome/browser/cocoa/browser_window_controller.h"
11 #import "chrome/browser/cocoa/tab_strip_controller.h" 10 #import "chrome/browser/cocoa/tab_strip_controller.h"
12 #import "chrome/browser/cocoa/themed_window.h" 11 #import "chrome/browser/cocoa/themed_window.h"
13 #include "chrome/browser/global_keyboard_shortcuts_mac.h" 12 #include "chrome/browser/global_keyboard_shortcuts_mac.h"
14 #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"
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
22 // Our browser window does some interesting things to get the behaviors that 22 // Our browser window does some interesting things to get the behaviors that
23 // we want. We replace the standard window controls (zoom, close, miniaturize) 23 // we want. We replace the standard window controls (zoom, close, miniaturize)
24 // with our own versions, so that we can position them slightly differently than 24 // with our own versions, so that we can position them slightly differently than
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 362 }
363 363
364 - (NSPoint)themePatternPhase { 364 - (NSPoint)themePatternPhase {
365 id delegate = [self delegate]; 365 id delegate = [self delegate];
366 if (![delegate respondsToSelector:@selector(themePatternPhase)]) 366 if (![delegate respondsToSelector:@selector(themePatternPhase)])
367 return NSMakePoint(0, 0); 367 return NSMakePoint(0, 0);
368 return [delegate themePatternPhase]; 368 return [delegate themePatternPhase];
369 } 369 }
370 370
371 @end 371 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698