| OLD | NEW |
| 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 CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "extensions/common/extension.h" | 9 #include "extensions/common/extension.h" |
| 10 #include "extensions/common/manifest_handler.h" | 10 #include "extensions/common/manifest_handler.h" |
| 11 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 12 | 12 |
| 13 namespace base { | |
| 14 class DictionaryValue; | |
| 15 } | |
| 16 | |
| 17 namespace extensions { | 13 namespace extensions { |
| 18 | 14 |
| 19 // A structure to hold the parsed app icon color data. | 15 // A structure to hold the parsed app icon color data. |
| 20 struct AppIconColorInfo : public Extension::ManifestData { | 16 struct AppIconColorInfo : public Extension::ManifestData { |
| 21 AppIconColorInfo(); | 17 AppIconColorInfo(); |
| 22 ~AppIconColorInfo() override; | 18 ~AppIconColorInfo() override; |
| 23 | 19 |
| 24 static SkColor GetIconColor(const Extension* extension); | 20 static SkColor GetIconColor(const Extension* extension); |
| 25 static const std::string& GetIconColorString(const Extension* extension); | 21 static const std::string& GetIconColorString(const Extension* extension); |
| 26 | 22 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 | 37 |
| 42 private: | 38 private: |
| 43 const std::vector<std::string> Keys() const override; | 39 const std::vector<std::string> Keys() const override; |
| 44 | 40 |
| 45 DISALLOW_COPY_AND_ASSIGN(AppIconColorHandler); | 41 DISALLOW_COPY_AND_ASSIGN(AppIconColorHandler); |
| 46 }; | 42 }; |
| 47 | 43 |
| 48 } // namespace extensions | 44 } // namespace extensions |
| 49 | 45 |
| 50 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ | 46 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_APP_ICON_COLOR_INFO_H_ |
| OLD | NEW |