Home
last modified time | relevance | path

Searched refs:color_string (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/extensions/browser/
Dimage_util.cc16 bool ParseCSSColorString(const std::string& color_string, SkColor* result) { in ParseCSSColorString() argument
19 if (color_string.empty() || color_string[0] != '#') in ParseCSSColorString()
23 if (color_string.length() == 4) { in ParseCSSColorString()
25 formatted_color += color_string[i]; in ParseCSSColorString()
26 formatted_color += color_string[i]; in ParseCSSColorString()
28 } else if (color_string.length() == 7) { in ParseCSSColorString()
29 formatted_color = color_string.substr(1, 6); in ParseCSSColorString()
Dimage_util.h17 bool ParseCSSColorString(const std::string& color_string, SkColor* result);
/external/chromium_org/chrome/browser/extensions/api/extension_action/
Dextension_action_api.cc532 std::string color_string; in RunExtensionAction() local
533 EXTENSION_FUNCTION_VALIDATE(details_->GetString("color", &color_string)); in RunExtensionAction()
534 if (!image_util::ParseCSSColorString(color_string, &color)) in RunExtensionAction()
Dextension_action_api.h141 static bool ParseCSSColorString(const std::string& color_string,