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

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

Issue 2878037: [Mac]Implement ViewID support. (third approach) (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Update according to review feedback. Created 10 years, 5 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
« no previous file with comments | « chrome/browser/cocoa/tab_strip_view.mm ('k') | chrome/browser/cocoa/toolbar_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 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
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)
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_view.mm ('k') | chrome/browser/cocoa/toolbar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698