OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "chrome/browser/extensions/image_loading_tracker.h" | 14 #include "chrome/browser/extensions/image_loading_tracker.h" |
15 #include "gfx/insets.h" | |
16 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 16 #include "ui/gfx/insets.h" |
17 | 17 |
18 class Extension; | 18 class Extension; |
19 | 19 |
20 class ExtensionIconManager : public ImageLoadingTracker::Observer { | 20 class ExtensionIconManager : public ImageLoadingTracker::Observer { |
21 public: | 21 public: |
22 ExtensionIconManager(); | 22 ExtensionIconManager(); |
23 virtual ~ExtensionIconManager(); | 23 virtual ~ExtensionIconManager(); |
24 | 24 |
25 // Start loading the icon for the given extension. | 25 // Start loading the icon for the given extension. |
26 void LoadIcon(const Extension* extension); | 26 void LoadIcon(const Extension* extension); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // If true, we will desaturate the icons to make them monochromatic. | 64 // If true, we will desaturate the icons to make them monochromatic. |
65 bool monochrome_; | 65 bool monochrome_; |
66 | 66 |
67 // Specifies the amount of empty padding to place around the icon. | 67 // Specifies the amount of empty padding to place around the icon. |
68 gfx::Insets padding_; | 68 gfx::Insets padding_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(ExtensionIconManager); | 70 DISALLOW_COPY_AND_ASSIGN(ExtensionIconManager); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ | 73 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_MANAGER_H_ |
OLD | NEW |