/external/chromium_org/ui/gfx/ |
H A D | 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); 24 EXPECT_DOUBLE_EQ(hsl.s, 0); 25 EXPECT_EQ(static_cast<int>(hsl 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...] |
H A D | 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) { argument 99 hsl->l = (vmax + vmin) / 2; 101 hsl->h = hsl->s = 0; 109 hsl 124 HSLToSkColor(const HSL& hsl, SkAlpha alpha) argument 155 HSL hsl; local [all...] |
H A D | skbitmap_operations_unittest.cc | 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); 311 color_utils::HSL hsl = { h, s, l }; local 312 SkBitmap ref_shifted = ReferenceCreateHSLShiftedBitmap(src, hsl); 313 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl);
|
/external/chromium_org/chrome/browser/themes/ |
H A D | theme_service.cc | 395 color_utils::HSL hsl; local 396 if (theme_supplier_.get() && theme_supplier_->GetTint(id, &hsl)) 397 return hsl;
|
H A D | browser_theme_pack.cc | 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 975 if (tint_list->GetDouble(0, &hsl.h) && 976 tint_list->GetDouble(1, &hsl.s) && 977 tint_list->GetDouble(2, &hsl.l)) { 980 temp_tints[id] = hsl; 1505 color_utils::HSL hsl; local [all...] |
/external/chromium/chrome/browser/themes/ |
H A D | 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; 620 color_utils::HSL hsl = { -1, -1, -1 }; local 622 if (ValidDoubleValue(tint_list, 0, &hsl.h) && 623 ValidDoubleValue(tint_list, 1, &hsl.s) && 624 ValidDoubleValue(tint_list, 2, &hsl.l)) { 627 temp_tints[id] = hsl; 1040 color_utils::HSL hsl; local [all...] |
H A D | theme_service.cc | 543 color_utils::HSL hsl; local 544 if (theme_pack_.get() && theme_pack_->GetTint(id, &hsl)) 545 return hsl;
|
/external/chromium/chrome/browser/ui/gtk/ |
H A D | browser_titlebar.cc | 111 color_utils::HSL hsl; local 114 color->blue >> 8), &hsl); 115 return hsl;
|
H A D | gtk_theme_service.cc | 876 color_utils::HSL hsl; local 877 color_utils::SkColorToHSL(GdkToSkColor(color), &hsl); local 880 hsl.s = default_tint.s; 883 hsl.l = default_tint.l; 885 tints_[id] = hsl;
|
H A D | browser_window_gtk.cc | 1759 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local 1760 SkColor frame_prelight_color = color_utils::HSLShift(frame_color, hsl);
|
/external/chromium_org/chrome/browser/ui/gtk/ |
H A D | browser_titlebar.cc | 113 color_utils::HSL hsl; local 116 color->blue >> 8), &hsl); 117 return hsl;
|
H A D | gtk_theme_service.cc | 933 color_utils::HSL hsl; local 934 color_utils::SkColorToHSL(gfx::GdkColorToSkColor(*color), &hsl); 937 hsl.s = default_tint.s; 940 hsl.l = default_tint.l; 942 tints_[id] = hsl;
|
H A D | browser_window_gtk.cc | 1781 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local 1782 SkColor frame_prelight_color = color_utils::HSLShift(frame_color, hsl);
|
/external/chromium_org/ui/native_theme/ |
H A D | native_theme_base.cc | 73 SkColor BrightenColor(const color_utils::HSL& hsl, SkAlpha alpha, argument 75 color_utils::HSL adjusted = hsl;
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
H A D | gtk2_ui.cc | 846 color_utils::HSL hsl; local 847 color_utils::SkColorToHSL(GdkColorToSkColor(*color), &hsl); 850 hsl.s = default_tint.s; 853 hsl.l = default_tint.l; 855 tints_[id] = hsl;
|