/external/chromium_org/ui/gfx/ |
color_utils_unittest.cc | 10 #include "ui/gfx/color_utils.h" 13 color_utils::HSL hsl = { 0, 0, 0 }; 14 color_utils::SkColorToHSL(SK_ColorRED, &hsl); 21 color_utils::HSL hsl = { 0, 0, 0 }; 22 color_utils::SkColorToHSL(SkColorSetARGB(255, 128, 128, 128), &hsl); 31 color_utils::HSL hsl = { 0, 1, 0.5 }; 32 SkColor result = color_utils::HSLToSkColor(hsl, 128); 46 color_utils::HSL hsl = { 0, 0, 0 }; 47 color_utils::SkColorToHSL(rgb, &hsl); 48 SkColor out = color_utils::HSLToSkColor(hsl, 255) [all...] |
sys_color_change_listener.cc | 5 #include "ui/gfx/color_utils.h" 28 int foreground_luminance = color_utils::GetLuminanceForColor( 29 color_utils::GetSysSkColor(COLOR_WINDOWTEXT)); 30 int background_luminance = color_utils::GetLuminanceForColor( 31 color_utils::GetSysSkColor(COLOR_WINDOW));
|
color_analysis.h | 18 namespace color_utils { namespace 125 } // namespace color_utils
|
color_utils.h | 14 namespace color_utils { namespace 87 } // namespace color_utils
|
color_analysis_unittest.cc | 15 using color_utils::FindClosestColor; 90 class MockKMeanImageSampler : public color_utils::KMeanImageSampler { 175 color_utils::CalculateKMeanColorOfPNG(png, 100, 600, &test_sampler); 193 color_utils::CalculateKMeanColorOfPNG(png, 100, 600, &test_sampler); 211 color_utils::CalculateKMeanColorOfPNG(png, 100, 600, &test_sampler); 217 color_utils::GridSampler sampler; 266 SkColor color = color_utils::CalculateKMeanColorOfBitmap(bitmap); 275 color = color_utils::CalculateKMeanColorOfBitmap(bitmap); 289 color_utils::ComputeColorCovariance(bitmap)); 292 gfx::Matrix3F covariance = color_utils::ComputeColorCovariance(bitmap) [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
gtk2_ui.h | 14 #include "ui/gfx/color_utils.h" 57 typedef std::map<int, color_utils::HSL> TintMap; 88 const color_utils::HSL& tint, 107 const color_utils::HSL& tint) const; 119 void GetNormalButtonTintHSL(color_utils::HSL* tint) const; 122 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const; 126 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const; 145 color_utils::HSL button_tint_; 146 color_utils::HSL entry_tint_; 147 color_utils::HSL selected_entry_tint_ [all...] |
gtk2_ui.cc | 65 const color_utils::HSL kGtkFrameShift = { -1, -1, 0.58 }; 69 const color_utils::HSL kDefaultFrameShift = { -1, -1, 0.4 }; 90 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; 91 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; 92 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; 93 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; 94 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 95 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; 203 color_utils::HSL* tint) { 205 color_utils::HSL accent_tint [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
gtk_theme_service.h | 19 #include "ui/gfx/color_utils.h" 147 typedef std::map<int, color_utils::HSL> TintMap; 189 const color_utils::HSL& tint, 217 const color_utils::HSL& tint) const; 221 void GetNormalButtonTintHSL(color_utils::HSL* tint) const; 224 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const; 228 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const; 270 color_utils::HSL button_tint_; 271 color_utils::HSL entry_tint_; 272 color_utils::HSL selected_entry_tint_ [all...] |
gtk_theme_service.cc | 40 #include "ui/gfx/color_utils.h" 53 const color_utils::HSL kGtkFrameShift = { -1, -1, 0.58 }; 57 const color_utils::HSL kDefaultFrameShift = { -1, -1, 0.4 }; 143 color_utils::HSL* tint) { 145 color_utils::HSL accent_tint; 146 color_utils::SkColorToHSL(accent_color, &accent_tint); 148 color_utils::HSL text_tint; 149 color_utils::SkColorToHSL(GdkToSkColor(&text_color), &text_tint); 151 color_utils::HSL background_tint; 152 color_utils::SkColorToHSL(GdkToSkColor(&background_color), &background_tint) [all...] |
/external/chromium_org/chrome/browser/themes/ |
custom_theme_supplier.h | 17 namespace color_utils { namespace 53 virtual bool GetTint(int id, color_utils::HSL* hsl) const;
|
theme_properties.cc | 47 color_utils::GetSysSkColor(COLOR_WINDOW); 49 color_utils::GetSysSkColor(COLOR_WINDOWTEXT); 51 color_utils::GetSysSkColor(COLOR_HOTLIGHT); 65 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; 66 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; 67 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; 68 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; 69 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 70 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; 220 color_utils::HSL ThemeProperties::GetDefaultTint(int id) [all...] |
custom_theme_supplier.cc | 8 #include "ui/gfx/color_utils.h" 20 bool CustomThemeSupplier::GetTint(int id, color_utils::HSL* hsl) const {
|
browser_theme_pack.h | 19 #include "ui/gfx/color_utils.h" 82 virtual bool GetTint(int id, color_utils::HSL* hsl) const OVERRIDE; 168 void CreateTintedButtons(const color_utils::HSL& button_tint, 196 color_utils::HSL GetTintInternal(int id) const;
|
/external/chromium_org/chrome/browser/ui/omnibox/ |
location_bar_util.cc | 14 #include "ui/gfx/color_utils.h" 50 color_utils::AlphaBlend(text_color, background_color, 0x13), 51 color_utils::AlphaBlend(text_color, background_color, 0x1d) 61 color_utils::AlphaBlend(text_color, background_color, 0x55);
|
/external/chromium_org/chrome/browser/ui/gtk/ |
gtk_theme_service.h | 19 #include "ui/gfx/color_utils.h" 162 typedef std::map<int, color_utils::HSL> TintMap; 203 const color_utils::HSL& tint, 225 const color_utils::HSL& tint) const; 229 void GetNormalButtonTintHSL(color_utils::HSL* tint) const; 232 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const; 236 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const; 279 color_utils::HSL button_tint_; 280 color_utils::HSL entry_tint_; 281 color_utils::HSL selected_entry_tint_ [all...] |
gtk_theme_service.cc | 47 #include "ui/gfx/color_utils.h" 62 const color_utils::HSL kGtkFrameShift = { -1, -1, 0.58 }; 66 const color_utils::HSL kDefaultFrameShift = { -1, -1, 0.4 }; 146 color_utils::HSL* tint) { 148 color_utils::HSL accent_tint; 149 color_utils::SkColorToHSL(accent_color, &accent_tint); 151 color_utils::HSL text_tint; 152 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(text_color), &text_tint); 154 color_utils::HSL background_tint; 155 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(background_color) [all...] |
/external/chromium/chrome/browser/themes/ |
browser_theme_pack.h | 17 #include "ui/gfx/color_utils.h" 68 bool GetTint(int id, color_utils::HSL* hsl) const; 147 void GenerateTintedButtons(const color_utils::HSL& button_tint, 170 color_utils::HSL GetTintInternal(int id) const;
|
theme_service.cc | 55 color_utils::HSL result; 56 color_utils::SkColorToHSL(color, &result); 58 return color_utils::HSLToSkColor(result, SkColorGetA(color)); 82 color_utils::GetSysSkColor(COLOR_WINDOW); 84 color_utils::GetSysSkColor(COLOR_WINDOWTEXT); 86 color_utils::GetSysSkColor(COLOR_HOTLIGHT); 109 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 }; 110 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 }; 111 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; 112 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f } [all...] |
theme_service.h | 26 namespace color_utils { namespace 205 static color_utils::HSL GetDefaultTint(int id); 225 color_utils::HSL GetTint(int id) const;
|
/external/chromium/chrome/browser/ui/views/location_bar/ |
suggested_text_view.cc | 12 #include "ui/gfx/color_utils.h" 60 SetColor(color_utils::AlphaBlend( 92 SkColor s_color = color_utils::GetSysSkColor(COLOR_HIGHLIGHT); 98 bg_color_ = color_utils::AlphaBlend(s_color, bg_color,
|
/external/chromium_org/ui/views/ |
background.cc | 11 #include "ui/gfx/color_utils.h" 111 color_utils::AlphaBlend(color1, color2, 128)); 124 color_utils::AlphaBlend(colors[0], colors[count-1], 128));
|
/external/chromium/chrome/browser/autocomplete/ |
autocomplete_popup_view_gtk.cc | 31 #include "ui/gfx/color_utils.h" 123 color_utils::HSL fg_hsl; 124 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(foreground), &fg_hsl); 126 color_utils::HSL hue_hsl; 127 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(kURLTextColor), &hue_hsl); 141 color_utils::HSL output = { hue_hsl.h, s, l }; 142 return gfx::SkColorToGdkColor(color_utils::HSLToSkColor(output, 255)); 151 color_utils::HSL fg_hsl; 152 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(foreground), &fg_hsl); 154 color_utils::HSL bg_hsl [all...] |
/external/chromium_org/chrome/browser/ui/gtk/omnibox/ |
omnibox_popup_view_gtk.cc | 36 #include "ui/gfx/color_utils.h" 120 color_utils::HSL fg_hsl; 121 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(foreground), &fg_hsl); 123 color_utils::HSL hue_hsl; 124 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(kURLTextColor), &hue_hsl); 138 color_utils::HSL output = { hue_hsl.h, s, l }; 139 return gfx::SkColorToGdkColor(color_utils::HSLToSkColor(output, 255)); 148 color_utils::HSL fg_hsl; 149 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(foreground), &fg_hsl); 151 color_utils::HSL bg_hsl [all...] |
/external/chromium_org/chrome/browser/search/ |
instant_service.cc | 35 #include "ui/gfx/color_utils.h" 319 background_color = color_utils::InvertColor(background_color); 320 text_color = color_utils::InvertColor(text_color); 321 link_color = color_utils::InvertColor(link_color); 322 text_color_light = color_utils::InvertColor(text_color_light); 323 header_color = color_utils::InvertColor(header_color); 324 section_border_color = color_utils::InvertColor(section_border_color);
|
/external/chromium/chrome/browser/ui/views/ |
generic_info_view.cc | 10 #include "ui/gfx/color_utils.h" 60 SkColor border_color = color_utils::GetSysSkColor(COLOR_3DSHADOW); 100 SkColor text_area_background = color_utils::GetSysSkColor(COLOR_3DFACE);
|