OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_API_THEMES_THEME_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_API_THEMES_THEME_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
7 | 7 |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "chrome/common/extensions/manifest_handler.h" | 9 #include "chrome/common/extensions/manifest_handler.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class DictionaryValue; | 12 class DictionaryValue; |
13 } | 13 } |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 // A structure to hold the parsed theme data. | 17 // A structure to hold the parsed theme data. |
18 struct ThemeInfo : public Extension::ManifestData { | 18 struct ThemeInfo : public Extension::ManifestData { |
19 // Define out of line constructor/destructor to please Clang. | 19 // Define out of line constructor/destructor to please Clang. |
20 ThemeInfo(); | 20 ThemeInfo(); |
21 virtual ~ThemeInfo(); | 21 virtual ~ThemeInfo(); |
22 | 22 |
23 static base::DictionaryValue* GetThemeImages(const Extension* extension); | 23 static const base::DictionaryValue* GetImages(const Extension* extension); |
24 static base::DictionaryValue* GetThemeColors(const Extension* extension); | 24 static const base::DictionaryValue* GetColors(const Extension* extension); |
25 static base::DictionaryValue* GetThemeTints(const Extension* extension); | 25 static const base::DictionaryValue* GetTints(const Extension* extension); |
26 static base::DictionaryValue* GetThemeDisplayProperties( | 26 static const base::DictionaryValue* GetDisplayProperties( |
27 const Extension* extension); | 27 const Extension* extension); |
28 | 28 |
29 // A map of resource id's to relative file paths. | 29 // A map of resource id's to relative file paths. |
30 scoped_ptr<base::DictionaryValue> theme_images_; | 30 scoped_ptr<base::DictionaryValue> theme_images_; |
31 | 31 |
32 // A map of color names to colors. | 32 // A map of color names to colors. |
33 scoped_ptr<base::DictionaryValue> theme_colors_; | 33 scoped_ptr<base::DictionaryValue> theme_colors_; |
34 | 34 |
35 // A map of color names to colors. | 35 // A map of color names to colors. |
36 scoped_ptr<base::DictionaryValue> theme_tints_; | 36 scoped_ptr<base::DictionaryValue> theme_tints_; |
(...skipping 14 matching lines...) Expand all Loading... |
51 std::vector<InstallWarning>* warnings) const OVERRIDE; | 51 std::vector<InstallWarning>* warnings) const OVERRIDE; |
52 | 52 |
53 private: | 53 private: |
54 virtual const std::vector<std::string> Keys() const OVERRIDE; | 54 virtual const std::vector<std::string> Keys() const OVERRIDE; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(ThemeHandler); | 56 DISALLOW_COPY_AND_ASSIGN(ThemeHandler); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace extensions | 59 } // namespace extensions |
60 | 60 |
61 #endif // CHROME_COMMON_EXTENSIONS_API_THEMES_THEME_HANDLER_H_ | 61 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
OLD | NEW |