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

Unified Diff: extensions/browser/image_util.h

Issue 214243003: Remove some chrome dependencies from extensions app_window API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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
Index: extensions/browser/image_util.h
diff --git a/extensions/browser/image_util.h b/extensions/browser/image_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..2886b666539478b9a4bd6f5d2d9af4562e8013da
--- /dev/null
+++ b/extensions/browser/image_util.h
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// 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_
James Cook 2014/04/02 20:15:47 This file is called image_util.h instead of color_
+#define EXTENSIONS_BROWSER_IMAGE_UTIL_H_
+
+#include <string>
+
+typedef unsigned int SkColor;
+
+// This file contains various utility functions for extension images and colors.
+namespace extensions {
+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);
+
+} // namespace image_util
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_IMAGE_UTIL_H__

Powered by Google App Engine
This is Rietveld 408576698