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

Side by Side Diff: chrome/browser/extensions/extension_action_icon_factory.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: cocoa 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_BROWSER_EXTENSIONS_EXTENSION_ACTION_ICON_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_ICON_FACTORY_H_
7
8 #include "chrome/common/extensions/extension_action.h"
9
10 class ExtensionActionIcon;
11 class ExtensionIconSet;
12
13 namespace extensions {
14 class Extension;
15 }
16
17 class ExtensionActionIconFactory : public ExtensionAction::IconFactory {
Jeffrey Yasskin 2012/09/01 03:54:33 Comment what this is for. Also, terribly confusin
tbarzic 2012/09/05 01:05:29 Done.
18 public:
19 class Observer {
20 public:
21 virtual ~Observer() {}
22 virtual void OnIconUpdated() = 0;
23 };
24
25 // Observer should outlive this.
26 ExtensionActionIconFactory(const extensions::Extension* extension,
27 Observer* observer);
28 virtual ~ExtensionActionIconFactory();
29
30 // ExtensionAction::IconWrapperFactory override.
31 virtual gfx::ImageSkia GetIcon(const ExtensionIconSet* icon_set,
32 ExtensionAction::Type) OVERRIDE;
33
34 private:
35 const extensions::Extension* extension_;
36 Observer* observer_;
37 const ExtensionIconSet* last_icon_set_;
38 scoped_ptr<ExtensionActionIcon> icon_;
39
40 DISALLOW_COPY_AND_ASSIGN(ExtensionActionIconFactory);
41 };
42
43 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_ICON_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698