summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 01:14:52 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 01:14:52 +0000
commitcab34d6a13d3044c59cd5dccdf4b04725a395aac (patch)
treed9c05fd2e59a12cedf72f97d8cb4c420ff4793bb /chrome/browser/browser_theme_provider.h
parent37cc1a1eaaa0c425a1ba889cf619f464227f9906 (diff)
downloadchromium_src-cab34d6a13d3044c59cd5dccdf4b04725a395aac.zip
chromium_src-cab34d6a13d3044c59cd5dccdf4b04725a395aac.tar.gz
chromium_src-cab34d6a13d3044c59cd5dccdf4b04725a395aac.tar.bz2
Move functions from skia/ext to app/gfx where possible: most of skia_utils.* and image_operations.* can be moved because they are not used by WebKit code.
This also fixes the spelling of "Convolusion" to "Convolution" and updates some copyrights. This is a re-do of r26975, this time with WebKit update and some fixes to compile on Mac and Linux. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index 5313cec..0d11a6a 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -9,12 +9,12 @@
#include <string>
#include <vector>
+#include "app/gfx/color_utils.h"
#include "app/resource_bundle.h"
#include "app/theme_provider.h"
#include "base/basictypes.h"
#include "base/non_thread_safe.h"
#include "base/ref_counted.h"
-#include "skia/ext/skia_utils.h"
class Extension;
class Profile;
@@ -93,12 +93,12 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
static const SkColor kDefaultColorControlBackground;
static const SkColor kDefaultColorButtonBackground;
- static const skia::HSL kDefaultTintButtons;
- static const skia::HSL kDefaultTintFrame;
- static const skia::HSL kDefaultTintFrameInactive;
- static const skia::HSL kDefaultTintFrameIncognito;
- static const skia::HSL kDefaultTintFrameIncognitoInactive;
- static const skia::HSL kDefaultTintBackgroundTab;
+ static const color_utils::HSL kDefaultTintButtons;
+ static const color_utils::HSL kDefaultTintFrame;
+ static const color_utils::HSL kDefaultTintFrameInactive;
+ static const color_utils::HSL kDefaultTintFrameIncognito;
+ static const color_utils::HSL kDefaultTintFrameIncognitoInactive;
+ static const color_utils::HSL kDefaultTintBackgroundTab;
static const char* kDefaultThemeID;
@@ -209,10 +209,10 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
void SetColor(const char* id, const SkColor& color);
// Sets an individual tint value.
- void SetTint(const char* id, const skia::HSL& tint);
+ void SetTint(const char* id, const color_utils::HSL& tint);
// Get the specified tint - |id| is one of the TINT_* enum values.
- skia::HSL GetTint(int id);
+ color_utils::HSL GetTint(int id);
// Generate any frame colors that weren't specified.
void GenerateFrameColors();
@@ -255,7 +255,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
private:
typedef std::map<const int, std::string> ImageMap;
typedef std::map<const std::string, SkColor> ColorMap;
- typedef std::map<const std::string, skia::HSL> TintMap;
+ typedef std::map<const std::string, color_utils::HSL> TintMap;
typedef std::map<const std::string, int> DisplayPropertyMap;
typedef std::map<const int, std::vector<unsigned char> > RawDataMap;
typedef std::map<const int, std::string> ResourceNameMap;
@@ -264,7 +264,7 @@ class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>,
const std::string GetTintKey(int id);
// Returns the default tint for the given tint |id| TINT_* enum value.
- skia::HSL GetDefaultTint(int id);
+ color_utils::HSL GetDefaultTint(int id);
// Returns the string key for the given color |id| COLOR_* enum value.
const std::string GetColorKey(int id);