Pepper: Fix PPB_TrueTypeFont GetFontsInFamily function.
[chromium-blink-merge.git] / extensions / common / image_util.h
blobe9d2dfd528f86eed5998f868ffff6c33999e6c08
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_COMMON_IMAGE_UTIL_H_
6 #define EXTENSIONS_COMMON_IMAGE_UTIL_H_
8 #include <string>
10 typedef unsigned int SkColor;
12 // This file contains various utility functions for extension images and colors.
13 namespace extensions {
14 namespace image_util {
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);
19 // Creates a string like #FF9982 from a color.
20 std::string GenerateCSSColorString(SkColor color);
22 } // namespace image_util
23 } // namespace extensions
25 #endif // EXTENSIONS_BROWSER_IMAGE_UTIL_H__