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_ICONS_HANDLER_H_ | 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_ICONS_HANDLER_H_ | 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/extension.h" | 10 #include "extensions/common/extension.h" |
11 #include "extensions/common/extension_icon_set.h" | 11 #include "extensions/common/extension_icon_set.h" |
12 #include "extensions/common/extension_resource.h" | 12 #include "extensions/common/extension_resource.h" |
13 #include "extensions/common/manifest_handler.h" | 13 #include "extensions/common/manifest_handler.h" |
14 | 14 |
| 15 class GURL; |
| 16 |
| 17 namespace gfx { |
| 18 class ImageSkia; |
| 19 } |
| 20 |
15 namespace extensions { | 21 namespace extensions { |
16 | 22 |
17 struct IconsInfo : public Extension::ManifestData { | 23 struct IconsInfo : public Extension::ManifestData { |
18 // Max size (both dimensions) for browser and page actions. | 24 // Max size (both dimensions) for browser and page actions. |
19 static const int kPageActionIconMaxSize; | 25 static const int kPageActionIconMaxSize; |
20 static const int kBrowserActionIconMaxSize; | 26 static const int kBrowserActionIconMaxSize; |
21 | 27 |
22 // The icons for the extension. | 28 // The icons for the extension. |
23 ExtensionIconSet icons; | 29 ExtensionIconSet icons; |
24 | 30 |
(...skipping 25 matching lines...) Expand all Loading... |
50 virtual bool Validate(const Extension* extension, | 56 virtual bool Validate(const Extension* extension, |
51 std::string* error, | 57 std::string* error, |
52 std::vector<InstallWarning>* warnings) const OVERRIDE; | 58 std::vector<InstallWarning>* warnings) const OVERRIDE; |
53 | 59 |
54 private: | 60 private: |
55 virtual const std::vector<std::string> Keys() const OVERRIDE; | 61 virtual const std::vector<std::string> Keys() const OVERRIDE; |
56 }; | 62 }; |
57 | 63 |
58 } // namespace extensions | 64 } // namespace extensions |
59 | 65 |
60 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_ICONS_HANDLER_H_ | 66 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_ |
OLD | NEW |