OLD | NEW |
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 Loading... |
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 |
OLD | NEW |