/external/chromium_org/ui/gfx/ |
color_utils_unittest.cc | 13 color_utils::HSL hsl = { 0, 0, 0 }; local 14 color_utils::SkColorToHSL(SK_ColorRED, &hsl); 15 EXPECT_DOUBLE_EQ(hsl.h, 0); 16 EXPECT_DOUBLE_EQ(hsl.s, 1); 17 EXPECT_DOUBLE_EQ(hsl.l, 0.5); 21 color_utils::HSL hsl = { 0, 0, 0 }; local 22 color_utils::SkColorToHSL(SkColorSetARGB(255, 128, 128, 128), &hsl); 23 EXPECT_DOUBLE_EQ(hsl.h, 0) 31 color_utils::HSL hsl = { 0, 1, 0.5 }; local 46 color_utils::HSL hsl = { 0, 0, 0 }; local 59 color_utils::HSL hsl = { 0, 0, 0 }; local 74 color_utils::HSL hsl = { -1, -1, -1 }; local [all...] |
color_utils.cc | 58 HSL hsl; local 59 SkColorToHSL(color, &hsl); 60 hsl.l = 1.0 - hsl.l; 61 return HSLToSkColor(hsl, 255); 92 void SkColorToHSL(SkColor c, HSL* hsl) { 99 hsl->l = (vmax + vmin) / 2; 101 hsl->h = hsl->s = 0 155 HSL hsl; local [all...] |
skbitmap_operations_unittest.cc | 63 color_utils::HSL hsl_shift) { 232 color_utils::HSL hsl = { -1, -1, -1 }; local 233 SkBitmap shifted = ReferenceCreateHSLShiftedBitmap(src, hsl); 270 color_utils::HSL hsl = { 0, -1, -1 }; local 272 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl); 286 // Validate HSL shift. 311 color_utils::HSL hsl = { h, s, l } local [all...] |
/external/chromium_org/chrome/browser/themes/ |
theme_service.cc | 64 color_utils::HSL result; 392 color_utils::HSL ThemeService::GetTint(int id) const { 395 color_utils::HSL hsl; local 396 if (theme_supplier_.get() && theme_supplier_->GetTint(id, &hsl)) 397 return hsl;
|
browser_theme_pack.cc | 439 // Shifts an image's HSL values. The caller is responsible for deleting 442 const color_utils::HSL& hsl_shift) { 587 const color_utils::HSL& hsl_shift, 617 const color_utils::HSL hsl_shift_; 816 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const { 820 hsl->h = tints_[i].h; 821 hsl->s = tints_[i].s; 822 hsl->l = tints_[i].l; 973 color_utils::HSL hsl = { -1, -1, -1 }; local 1505 color_utils::HSL hsl; local [all...] |
/external/chromium/chrome/browser/themes/ |
theme_service.cc | 55 color_utils::HSL result; 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 }; 113 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 114 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; 432 color_utils::HSL ThemeService::GetDefaultTint(int id) { 447 color_utils::HSL result = {-1, -1, -1}; 540 color_utils::HSL ThemeService::GetTint(int id) const 543 color_utils::HSL hsl; local [all...] |
browser_theme_pack.cc | 454 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const { 458 hsl->h = tints_[i].h; 459 hsl->s = tints_[i].s; 460 hsl->l = tints_[i].l; 614 std::map<int, color_utils::HSL> temp_tints; 620 color_utils::HSL hsl = { -1, -1, -1 }; local 622 if (ValidDoubleValue(tint_list, 0, &hsl.h) && 623 ValidDoubleValue(tint_list, 1, &hsl.s) & 1040 color_utils::HSL hsl; local [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
browser_titlebar.cc | 109 // Converts a GdkColor to a color_utils::HSL. 110 color_utils::HSL GdkColorToHSL(const GdkColor* color) { 111 color_utils::HSL hsl; local 114 color->blue >> 8), &hsl); 115 return hsl; 124 color_utils::HSL baseHSL = GdkColorToHSL(base); 125 color_utils::HSL oneHSL = GdkColorToHSL(one); 126 color_utils::HSL twoHSL = GdkColorToHSL(two); [all...] |
gtk_theme_service.cc | 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; 148 color_utils::HSL text_tint; 151 color_utils::HSL background_tint; 154 // If the accent color is gray, then our normal HSL tomfoolery will bring out 234 // Applies an HSL shift to a GdkColor (instead of an SkColor) 235 void GdkColorHSLShift(const color_utils::HSL& shift, GdkColor* frame_color) { 720 color_utils::HSL inactive_tab_text_hsl = tints_[TINT_BACKGROUND_TAB] 876 color_utils::HSL hsl; local 877 color_utils::SkColorToHSL(GdkToSkColor(color), &hsl); local [all...] |
browser_window_gtk.cc | 1759 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local [all...] |
/external/chromium_org/chrome/browser/ui/gtk/ |
browser_titlebar.cc | 111 // Converts a GdkColor to a color_utils::HSL. 112 color_utils::HSL GdkColorToHSL(const GdkColor* color) { 113 color_utils::HSL hsl; local 116 color->blue >> 8), &hsl); 117 return hsl; 126 color_utils::HSL baseHSL = GdkColorToHSL(base); 127 color_utils::HSL oneHSL = GdkColorToHSL(one); 128 color_utils::HSL twoHSL = GdkColorToHSL(two); [all...] |
gtk_theme_service.cc | 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; 151 color_utils::HSL text_tint; 154 color_utils::HSL background_tint; 158 // If the accent color is gray, then our normal HSL tomfoolery will bring out 238 // Applies an HSL shift to a GdkColor (instead of an SkColor) 239 void GdkColorHSLShift(const color_utils::HSL& shift, GdkColor* frame_color) { 755 color_utils::HSL inactive_tab_text_hsl 933 color_utils::HSL hsl; local [all...] |
browser_window_gtk.cc | 1781 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
gtk2_ui.cc | 85 const color_utils::HSL kGtkFrameShift = { -1, -1, 0.58 }; 89 const color_utils::HSL kDefaultFrameShift = { -1, -1, 0.4 }; 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 }; 113 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; 114 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 }; 222 color_utils::HSL* tint) { 224 color_utils::HSL accent_tint 846 color_utils::HSL hsl; local [all...] |