blob: e9d2dfd528f86eed5998f868ffff6c33999e6c08 [file] [log] [blame]
// 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.
#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);
// Creates a string like #FF9982 from a color.
std::string GenerateCSSColorString(SkColor color);
} // namespace image_util
} // namespace extensions