| OLD | NEW |
| 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" | 11 #include "chrome/browser/browser_theme_provider.h" |
| 12 #import "chrome/browser/cocoa/tab_controller.h" | 12 #import "chrome/browser/cocoa/tab_controller.h" |
| 13 #import "chrome/browser/cocoa/tab_window_controller.h" | 13 #import "chrome/browser/cocoa/tab_window_controller.h" |
| 14 #import "chrome/browser/cocoa/themed_window.h" | 14 #import "chrome/browser/cocoa/themed_window.h" |
| 15 #import "chrome/browser/cocoa/view_id_util.h" |
| 15 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 // Constants for inset and control points for tab shape. | 20 // Constants for inset and control points for tab shape. |
| 20 const CGFloat kInsetMultiplier = 2.0/3.0; | 21 const CGFloat kInsetMultiplier = 2.0/3.0; |
| 21 const CGFloat kControlPoint1Multiplier = 1.0/3.0; | 22 const CGFloat kControlPoint1Multiplier = 1.0/3.0; |
| 22 const CGFloat kControlPoint2Multiplier = 3.0/8.0; | 23 const CGFloat kControlPoint2Multiplier = 3.0/8.0; |
| 23 | 24 |
| 24 // 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 } else { | 1024 } else { |
| 1024 NOTREACHED(); | 1025 NOTREACHED(); |
| 1025 } | 1026 } |
| 1026 } | 1027 } |
| 1027 if (useCache) { | 1028 if (useCache) { |
| 1028 workspaceIDCache_[windowID] = workspace; | 1029 workspaceIDCache_[windowID] = workspace; |
| 1029 } | 1030 } |
| 1030 return workspace; | 1031 return workspace; |
| 1031 } | 1032 } |
| 1032 | 1033 |
| 1034 - (ViewID)viewID { |
| 1035 return VIEW_ID_TAB; |
| 1036 } |
| 1037 |
| 1033 @end // @implementation TabView(Private) | 1038 @end // @implementation TabView(Private) |
| OLD | NEW |