summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/extensions
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 21:40:19 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 21:40:19 +0000
commit5b7ecddf1f3cf8bc0e6c4da40d4d3c7b8858c2c8 (patch)
tree3ff9e81c88e2c3fba16cf00edd6aef82c8c13afb /chrome/browser/cocoa/extensions
parente4b5d638b59f1320ca45ebec61fcbf00f64915bf (diff)
downloadchromium_src-5b7ecddf1f3cf8bc0e6c4da40d4d3c7b8858c2c8.zip
chromium_src-5b7ecddf1f3cf8bc0e6c4da40d4d3c7b8858c2c8.tar.gz
chromium_src-5b7ecddf1f3cf8bc0e6c4da40d4d3c7b8858c2c8.tar.bz2
10.6 SDK compatibility fix for BrowserActionCell following r38278.
See r26348, "Avoid spurious errors about NSColor*-CGColor* and NSSize-CGSize conversions": The SDK has gotten stupider in 10.6, and has conspired with the compiler, which now thinks that when the receiver is held in a scoped_nsobject, NSColor and NSSize arguments should be converted to their CG cousins. BUG=35569 TEST=10.6 SDK build (mac_sdk=10.6) Review URL: http://codereview.chromium.org/604038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/extensions')
-rw-r--r--chrome/browser/cocoa/extensions/browser_action_button.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/extensions/browser_action_button.mm b/chrome/browser/cocoa/extensions/browser_action_button.mm
index 6283708..e12081a 100644
--- a/chrome/browser/cocoa/extensions/browser_action_button.mm
+++ b/chrome/browser/cocoa/extensions/browser_action_button.mm
@@ -170,9 +170,10 @@ class ExtensionImageTrackerBridge : public NotificationObserver,
// Create the shadow below and to the right of the drawn image.
scoped_nsobject<NSShadow> imgShadow([[NSShadow alloc] init]);
- [imgShadow setShadowOffset:NSMakeSize(2.0, -2.0)];
+ [imgShadow.get() setShadowOffset:NSMakeSize(2.0, -2.0)];
[imgShadow setShadowBlurRadius:2.0];
- [imgShadow setShadowColor:[[NSColor blackColor] colorWithAlphaComponent:0.3]];
+ [imgShadow.get() setShadowColor:[[NSColor blackColor]
+ colorWithAlphaComponent:0.3]];
[imgShadow set];
[super drawInteriorWithFrame:cellFrame inView:controlView];