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

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

Issue 181002: Reverting 24700. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « chrome/app/theme/star_Template.pdf ('k') | chrome/browser/cocoa/bookmark_bar_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/cocoa/background_gradient_view.h" 5 #include "chrome/browser/cocoa/background_gradient_view.h"
6 6
7 #define kToolbarTopOffset 12 7 #define kToolbarTopOffset 12
8 #define kToolbarMaxHeight 100 8 #define kToolbarMaxHeight 128
9 9
10 @implementation BackgroundGradientView 10 @implementation BackgroundGradientView
11 @synthesize showsDivider = showsDivider_; 11 @synthesize showsDivider = showsDivider_;
12 12
13 - (id)initWithFrame:(NSRect)frameRect { 13 - (id)initWithFrame:(NSRect)frameRect {
14 self = [super initWithFrame:frameRect]; 14 self = [super initWithFrame:frameRect];
15 if (self != nil) { 15 if (self != nil) {
16 showsDivider_ = YES; 16 showsDivider_ = YES;
17 } 17 }
18 return self; 18 return self;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); 75 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver);
76 } 76 }
77 } 77 }
78 78
79 - (NSColor*)strokeColor { 79 - (NSColor*)strokeColor {
80 return [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBar 80 return [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBar
81 state:[[self window] isKeyWindow]]; 81 state:[[self window] isKeyWindow]];
82 } 82 }
83 83
84 @end 84 @end
OLDNEW
« no previous file with comments | « chrome/app/theme/star_Template.pdf ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698