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

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

Issue 192033: Final tweaks to download items on OS X. (Closed)
Patch Set: Elide status text 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
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/status_bubble_mac.h" 5 #include "chrome/browser/cocoa/status_bubble_mac.h"
6 6
7 #include "app/gfx/text_elider.h" 7 #include "app/gfx/text_elider.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 348
349 // Text 349 // Text
350 NSColor* textColor = [color gtm_legibleTextColor]; 350 NSColor* textColor = [color gtm_legibleTextColor];
351 NSFont* textFont = [self font]; 351 NSFont* textFont = [self font];
352 NSShadow* textShadow = [[[NSShadow alloc] init] autorelease]; 352 NSShadow* textShadow = [[[NSShadow alloc] init] autorelease];
353 [textShadow setShadowBlurRadius:0.0f]; 353 [textShadow setShadowBlurRadius:0.0f];
354 [textShadow setShadowColor:[textColor gtm_legibleTextColor]]; 354 [textShadow setShadowColor:[textColor gtm_legibleTextColor]];
355 [textShadow setShadowOffset:NSMakeSize(0.0f, -1.0f)]; 355 [textShadow setShadowOffset:NSMakeSize(0.0f, -1.0f)];
356 356
357 NSDictionary* textDict = [NSDictionary dictionaryWithObjectsAndKeys: 357 NSDictionary* textDict = [NSDictionary dictionaryWithObjectsAndKeys:
358 textColor, NSForegroundColorAttributeName,
358 textFont, NSFontAttributeName, 359 textFont, NSFontAttributeName,
359 textShadow, NSShadowAttributeName, 360 textShadow, NSShadowAttributeName,
360 nil]; 361 nil];
361 [content_ drawAtPoint:NSMakePoint(kTextPositionX, kTextPositionY) 362 [content_ drawAtPoint:NSMakePoint(kTextPositionX, kTextPositionY)
362 withAttributes:textDict]; 363 withAttributes:textDict];
363 } 364 }
364 365
365 @end 366 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698