summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider_mac.mm
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 20:54:48 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 20:54:48 +0000
commit96c2e8ec18feb0766c22acfb481a59f0983c572a (patch)
tree3b1d3f8312d8bdb9bc789bf9859298368021b681 /chrome/browser/browser_theme_provider_mac.mm
parent9520ab113d86539f1deba7d107776f0b8ee72a12 (diff)
downloadchromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.zip
chromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.tar.gz
chromium_src-96c2e8ec18feb0766c22acfb481a59f0983c572a.tar.bz2
Reverting 26975.
Review URL: http://codereview.chromium.org/222011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider_mac.mm')
-rw-r--r--chrome/browser/browser_theme_provider_mac.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/browser_theme_provider_mac.mm b/chrome/browser/browser_theme_provider_mac.mm
index 6df0336..063ec25 100644
--- a/chrome/browser/browser_theme_provider_mac.mm
+++ b/chrome/browser/browser_theme_provider_mac.mm
@@ -6,14 +6,14 @@
#import <Cocoa/Cocoa.h>
-#include "app/gfx/color_utils.h"
#include "base/logging.h"
+#include "skia/ext/skia_utils.h"
#include "skia/ext/skia_utils_mac.h"
namespace {
-void HSLToHSB(const color_utils::HSL& hsl, CGFloat* h, CGFloat* s, CGFloat* b) {
- SkColor color = color_utils::HSLToSkColor(hsl, 255); // alpha doesn't matter
+void HSLToHSB(const skia::HSL& hsl, CGFloat* h, CGFloat* s, CGFloat* b) {
+ SkColor color = skia::HSLToSkColor(1.0, hsl); // alpha value doesn't matter
SkScalar hsv[3];
SkColorToHSV(color, hsv);
@@ -106,7 +106,7 @@ NSColor* BrowserThemeProvider::GetNSColorTint(int id) {
TintMap::iterator tint_iter = tints_.find(GetTintKey(id));
if (tint_iter != tints_.end()) {
- color_utils::HSL tint = tint_iter->second;
+ skia::HSL tint = tint_iter->second;
CGFloat hue, saturation, brightness;
HSLToHSB(tint, &hue, &saturation, &brightness);