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

Side by Side Diff: chrome/browser/cocoa/tab_view.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) 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/cocoa/tab_view.h" 5 #import "chrome/browser/cocoa/tab_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "base/mac_util.h" 8 #import "base/mac_util.h"
9 #include "base/nsimage_cache_mac.h" 9 #include "base/nsimage_cache_mac.h"
10 #include "base/scoped_cftyperef.h" 10 #include "base/scoped_cftyperef.h"
11 #include "chrome/browser/browser_theme_provider.h"
12 #import "chrome/browser/cocoa/tab_controller.h" 11 #import "chrome/browser/cocoa/tab_controller.h"
13 #import "chrome/browser/cocoa/tab_window_controller.h" 12 #import "chrome/browser/cocoa/tab_window_controller.h"
14 #import "chrome/browser/cocoa/themed_window.h" 13 #import "chrome/browser/cocoa/themed_window.h"
15 #import "chrome/browser/cocoa/view_id_util.h" 14 #import "chrome/browser/cocoa/view_id_util.h"
15 #include "chrome/browser/themes/browser_theme_provider.h"
16 #include "grit/theme_resources.h" 16 #include "grit/theme_resources.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Constants for inset and control points for tab shape. 20 // Constants for inset and control points for tab shape.
21 const CGFloat kInsetMultiplier = 2.0/3.0; 21 const CGFloat kInsetMultiplier = 2.0/3.0;
22 const CGFloat kControlPoint1Multiplier = 1.0/3.0; 22 const CGFloat kControlPoint1Multiplier = 1.0/3.0;
23 const CGFloat kControlPoint2Multiplier = 3.0/8.0; 23 const CGFloat kControlPoint2Multiplier = 3.0/8.0;
24 24
25 // The amount of time in seconds during which each type of glow increases, holds 25 // The amount of time in seconds during which each type of glow increases, holds
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset, 1042 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset,
1043 topRight.y) 1043 topRight.y)
1044 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, 1044 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset,
1045 bottomRight.y)]; 1045 bottomRight.y)];
1046 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)]; 1046 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)];
1047 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)]; 1047 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)];
1048 return path; 1048 return path;
1049 } 1049 }
1050 1050
1051 @end // @implementation TabView(Private) 1051 @end // @implementation TabView(Private)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698