| 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_ICONS_ICONS_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_API_ICONS_ICONS_HANDLER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_API_ICONS_ICONS_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_API_ICONS_ICONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| 11 #include "chrome/common/extensions/extension_icon_set.h" | 11 #include "chrome/common/extensions/extension_icon_set.h" |
| 12 #include "chrome/common/extensions/extension_resource.h" | |
| 13 #include "chrome/common/extensions/manifest_handler.h" | 12 #include "chrome/common/extensions/manifest_handler.h" |
| 13 #include "extensions/common/extension_resource.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 struct IconsInfo : public Extension::ManifestData { | 17 struct IconsInfo : public Extension::ManifestData { |
| 18 // Max size (both dimensions) for browser and page actions. | 18 // Max size (both dimensions) for browser and page actions. |
| 19 static const int kPageActionIconMaxSize; | 19 static const int kPageActionIconMaxSize; |
| 20 static const int kBrowserActionIconMaxSize; | 20 static const int kBrowserActionIconMaxSize; |
| 21 | 21 |
| 22 // The icons for the extension. | 22 // The icons for the extension. |
| 23 ExtensionIconSet icons; | 23 ExtensionIconSet icons; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 std::string* error, | 76 std::string* error, |
| 77 std::vector<InstallWarning>* warnings) const OVERRIDE; | 77 std::vector<InstallWarning>* warnings) const OVERRIDE; |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 virtual const std::vector<std::string> Keys() const OVERRIDE; | 80 virtual const std::vector<std::string> Keys() const OVERRIDE; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace extensions | 83 } // namespace extensions |
| 84 | 84 |
| 85 #endif // CHROME_COMMON_EXTENSIONS_API_ICONS_ICONS_HANDLER_H_ | 85 #endif // CHROME_COMMON_EXTENSIONS_API_ICONS_ICONS_HANDLER_H_ |
| OLD | NEW |