Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: extensions/common/manifest_handlers/icons_handler.h

Issue 229813002: Move extensions manifest IconsHandler to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (icons-handler) Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/common/file_util.cc ('k') | extensions/common/manifest_handlers/icons_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
19 static const int kPageActionIconMaxSize;
20 static const int kBrowserActionIconMaxSize;
21
22 // The icons for the extension. 24 // The icons for the extension.
23 ExtensionIconSet icons; 25 ExtensionIconSet icons;
24 26
25 // Return the icon set for the given |extension|. 27 // Return the icon set for the given |extension|.
26 static const ExtensionIconSet& GetIcons(const Extension* extension); 28 static const ExtensionIconSet& GetIcons(const Extension* extension);
27 29
28 // Returns the default extension/app icon (for extensions or apps that don't 30 // Returns the default extension/app icon (for extensions or apps that don't
29 // have one). 31 // have one).
30 static const gfx::ImageSkia& GetDefaultExtensionIcon(); 32 static const gfx::ImageSkia& GetDefaultExtensionIcon();
31 static const gfx::ImageSkia& GetDefaultAppIcon(); 33 static const gfx::ImageSkia& GetDefaultAppIcon();
(...skipping 18 matching lines...) Expand all
50 virtual bool Validate(const Extension* extension, 52 virtual bool Validate(const Extension* extension,
51 std::string* error, 53 std::string* error,
52 std::vector<InstallWarning>* warnings) const OVERRIDE; 54 std::vector<InstallWarning>* warnings) const OVERRIDE;
53 55
54 private: 56 private:
55 virtual const std::vector<std::string> Keys() const OVERRIDE; 57 virtual const std::vector<std::string> Keys() const OVERRIDE;
56 }; 58 };
57 59
58 } // namespace extensions 60 } // namespace extensions
59 61
60 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_ICONS_HANDLER_H_ 62 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_ICONS_HANDLER_H_
OLDNEW
« no previous file with comments | « extensions/common/file_util.cc ('k') | extensions/common/manifest_handlers/icons_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698