/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) { 233 color_utils::HSL hsl = { -1, -1, -1 }; local 234 SkBitmap shifted = ReferenceCreateHSLShiftedBitmap(src, hsl); 271 color_utils::HSL hsl = { 0, -1, -1 }; local 273 SkBitmap shifted = SkBitmapOperations::CreateHSLShiftedBitmap(src, hsl); 287 // Validate HSL shift. 312 color_utils::HSL hsl = { h, s, l } local [all...] |
/external/chromium_org/chrome/browser/themes/ |
theme_service.cc | 63 color_utils::HSL result; 309 color_utils::HSL ThemeService::GetTint(int id) const { 312 color_utils::HSL hsl; local 313 if (theme_supplier_.get() && theme_supplier_->GetTint(id, &hsl)) 314 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) { 589 const color_utils::HSL& hsl_shift, 619 const color_utils::HSL hsl_shift_; 818 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const { 822 hsl->h = tints_[i].h; 823 hsl->s = tints_[i].s; 824 hsl->l = tints_[i].l; 975 color_utils::HSL hsl = { -1, -1, -1 }; local 1504 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 | 116 // Converts a GdkColor to a color_utils::HSL. 117 color_utils::HSL GdkColorToHSL(const GdkColor* color) { 118 color_utils::HSL hsl; local 121 color->blue >> 8), &hsl); 122 return hsl; 131 color_utils::HSL baseHSL = GdkColorToHSL(base); 132 color_utils::HSL oneHSL = GdkColorToHSL(one); 133 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 | 1762 color_utils::HSL hsl = { -1, 0.5, 0.65 }; local [all...] |
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
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 706 color_utils::HSL hsl; local [all...] |