| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tabs/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/themes/theme_service.h" | 10 #include "chrome/browser/themes/theme_service.h" | 
| 11 #import "chrome/browser/ui/cocoa/nsview_additions.h" | 11 #import "chrome/browser/ui/cocoa/nsview_additions.h" | 
| 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 
| 13 #import "chrome/browser/ui/cocoa/tabs/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/generated_resources.h" | 16 #include "grit/generated_resources.h" | 
| 17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" | 
|  | 18 #include "grit/theme_resources_standard.h" | 
| 18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" | 
| 19 | 20 | 
| 20 namespace { | 21 namespace { | 
| 21 | 22 | 
| 22 // Constants for inset and control points for tab shape. | 23 // Constants for inset and control points for tab shape. | 
| 23 const CGFloat kInsetMultiplier = 2.0/3.0; | 24 const CGFloat kInsetMultiplier = 2.0/3.0; | 
| 24 const CGFloat kControlPoint1Multiplier = 1.0/3.0; | 25 const CGFloat kControlPoint1Multiplier = 1.0/3.0; | 
| 25 const CGFloat kControlPoint2Multiplier = 3.0/8.0; | 26 const CGFloat kControlPoint2Multiplier = 3.0/8.0; | 
| 26 | 27 | 
| 27 // The amount of time in seconds during which each type of glow increases, holds | 28 // The amount of time in seconds during which each type of glow increases, holds | 
| (...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1060                                  topRight.y) | 1061                                  topRight.y) | 
| 1061        controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, | 1062        controlPoint2:NSMakePoint(bottomRight.x - baseControlPointOutset, | 
| 1062                                  bottomRight.y)]; | 1063                                  bottomRight.y)]; | 
| 1063   [path lineToPoint:NSMakePoint(bottomRight.x + lineWidth, bottomRight.y)]; | 1064   [path lineToPoint:NSMakePoint(bottomRight.x + lineWidth, bottomRight.y)]; | 
| 1064   [path lineToPoint:NSMakePoint(bottomRight.x + lineWidth, | 1065   [path lineToPoint:NSMakePoint(bottomRight.x + lineWidth, | 
| 1065                                 bottomRight.y - (2 * lineWidth))]; | 1066                                 bottomRight.y - (2 * lineWidth))]; | 
| 1066   return path; | 1067   return path; | 
| 1067 } | 1068 } | 
| 1068 | 1069 | 
| 1069 @end  // @implementation TabView(Private) | 1070 @end  // @implementation TabView(Private) | 
| OLD | NEW | 
|---|