OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_FACTORY_DELEGATE_H_ | |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_FACTORY_DELEGATE_H_ | |
7 | |
8 #include "chrome/common/extensions/extension_icon_set.h" | |
9 | |
10 namespace gfx { | |
11 class ImageSkia; | |
12 } | |
13 | |
14 // Used by code living in chrome/common/ to delegate icon creation when the icon | |
15 // creation cannot be done from chrome/common/ (e.g. if the icon is loaded | |
16 // asynchronously using ImageLoadingTracker). | |
17 class ExtensionIconFactoryDelegate { | |
18 public: | |
19 virtual ~ExtensionIconFactoryDelegate() {} | |
20 | |
21 // Should create icon of desired size from icon paths defined in |icon_set|. | |
22 virtual gfx::ImageSkia GetIcon(const ExtensionIconSet* icon_set, | |
23 int desired_size) = 0; | |
Jeffrey Yasskin
2012/09/13 00:23:36
Still trying to get my head around the meaning of
tbarzic
2012/09/13 02:01:01
Done.
| |
24 }; | |
25 | |
26 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_FACTORY_DELEGATE_H_ | |
OLD | NEW |