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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/image_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_IMAGE_UTIL_H_ 5 #ifndef EXTENSIONS_COMMON_IMAGE_UTIL_H_
6 #define EXTENSIONS_BROWSER_IMAGE_UTIL_H_ 6 #define EXTENSIONS_COMMON_IMAGE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 typedef unsigned int SkColor; 10 typedef unsigned int SkColor;
11 11
12 // This file contains various utility functions for extension images and colors. 12 // This file contains various utility functions for extension images and colors.
13 namespace extensions { 13 namespace extensions {
14 namespace image_util { 14 namespace image_util {
15 15
16 // Parses a string like #FF9982 or #EEE to a color. Returns true for success. 16 // Parses a string like #FF9982 or #EEE to a color. Returns true for success.
17 bool ParseCSSColorString(const std::string& color_string, SkColor* result); 17 bool ParseCSSColorString(const std::string& color_string, SkColor* result);
18 18
19 // Creates a string like #FF9982 from a color.
20 std::string GenerateCSSColorString(SkColor color);
21
19 } // namespace image_util 22 } // namespace image_util
20 } // namespace extensions 23 } // namespace extensions
21 24
22 #endif // EXTENSIONS_BROWSER_IMAGE_UTIL_H__ 25 #endif // EXTENSIONS_BROWSER_IMAGE_UTIL_H__
OLDNEW
« 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