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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_view.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/tab_view.h" 5 #import "chrome/browser/ui/cocoa/tabs/tab_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "base/mac/mac_util.h" 8 #import "base/mac/mac_util.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "chrome/browser/accessibility/browser_accessibility_state.h" 10 #include "chrome/browser/accessibility/browser_accessibility_state.h"
11 #include "chrome/browser/themes/browser_theme_provider.h" 11 #include "chrome/browser/themes/browser_theme_provider.h"
12 #import "chrome/browser/ui/cocoa/tab_controller.h" 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h"
13 #import "chrome/browser/ui/cocoa/tab_window_controller.h" 13 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h"
14 #import "chrome/browser/ui/cocoa/themed_window.h" 14 #import "chrome/browser/ui/cocoa/themed_window.h"
15 #import "chrome/browser/ui/cocoa/view_id_util.h" 15 #import "chrome/browser/ui/cocoa/view_id_util.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;
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset, 1047 controlPoint1:NSMakePoint(topRight.x + bottomControlPointInset,
1048 topRight.y) 1048 topRight.y)
1049 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, 1049 controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset,
1050 bottomRight.y)]; 1050 bottomRight.y)];
1051 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)]; 1051 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y)];
1052 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)]; 1052 [path lineToPoint:NSMakePoint(bottomRight.x + 1, bottomRight.y - 2)];
1053 return path; 1053 return path;
1054 } 1054 }
1055 1055
1056 @end // @implementation TabView(Private) 1056 @end // @implementation TabView(Private)
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_view.h ('k') | chrome/browser/ui/cocoa/tabs/tab_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698