| 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_MANIFEST_HANDLERS_THEME_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
| 7 | 7 |
| 8 #include "extensions/common/extension.h" | 8 #include "extensions/common/extension.h" |
| 9 #include "extensions/common/manifest_handler.h" | 9 #include "extensions/common/manifest_handler.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // A map of display properties. | 38 // A map of display properties. |
| 39 scoped_ptr<base::DictionaryValue> theme_display_properties_; | 39 scoped_ptr<base::DictionaryValue> theme_display_properties_; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Parses the "theme" manifest key. | 42 // Parses the "theme" manifest key. |
| 43 class ThemeHandler : public ManifestHandler { | 43 class ThemeHandler : public ManifestHandler { |
| 44 public: | 44 public: |
| 45 ThemeHandler(); | 45 ThemeHandler(); |
| 46 virtual ~ThemeHandler(); | 46 virtual ~ThemeHandler(); |
| 47 | 47 |
| 48 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 48 virtual bool Parse(Extension* extension, base::string16* error) override; |
| 49 virtual bool Validate(const Extension* extension, | 49 virtual bool Validate(const Extension* extension, |
| 50 std::string* error, | 50 std::string* error, |
| 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_MANIFEST_HANDLERS_THEME_HANDLER_H_ | 61 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_THEME_HANDLER_H_ |
| OLD | NEW |