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

Side by Side Diff: chrome/common/extensions/extension_icon_factory_delegate.h

Issue 10905005: Change browser/page action default icon defined in manifest to support hidpi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698