Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: extensions/common/image_util.h

Issue 782693002: Ensure there are always nice icons for bookmark apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac compile Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/image_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/image_util.h
diff --git a/extensions/browser/image_util.h b/extensions/common/image_util.h
similarity index 77%
rename from extensions/browser/image_util.h
rename to extensions/common/image_util.h
index 2886b666539478b9a4bd6f5d2d9af4562e8013da..e9d2dfd528f86eed5998f868ffff6c33999e6c08 100644
--- a/extensions/browser/image_util.h
+++ b/extensions/common/image_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EXTENSIONS_BROWSER_IMAGE_UTIL_H_
-#define EXTENSIONS_BROWSER_IMAGE_UTIL_H_
+#ifndef EXTENSIONS_COMMON_IMAGE_UTIL_H_
+#define EXTENSIONS_COMMON_IMAGE_UTIL_H_
#include <string>
@@ -16,6 +16,9 @@ namespace image_util {
// Parses a string like #FF9982 or #EEE to a color. Returns true for success.
bool ParseCSSColorString(const std::string& color_string, SkColor* result);
+// Creates a string like #FF9982 from a color.
+std::string GenerateCSSColorString(SkColor color);
+
} // namespace image_util
} // namespace extensions
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698