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

Side by Side Diff: chrome/browser/extensions/extension_icon_image.h

Issue 10868003: chromeos: Fix pixelated icons in app list and launcher (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_IMAGE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_IMAGE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_IMAGE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_IMAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 protected: 48 protected:
49 virtual ~Observer() {} 49 virtual ~Observer() {}
50 }; 50 };
51 51
52 IconImage(const Extension* extension, 52 IconImage(const Extension* extension,
53 const ExtensionIconSet& icon_set, 53 const ExtensionIconSet& icon_set,
54 int resource_size_in_dip, 54 int resource_size_in_dip,
55 Observer* observer); 55 Observer* observer);
56 virtual ~IconImage(); 56 virtual ~IconImage();
57 57
58 // Sets given |rep| to |image_skia_|. This allows observer to set an
Aaron Boodman 2012/08/30 06:09:20 Reader of documentation should not need to underst
59 // image when load fails.
60 void SetRepresentation(const gfx::ImageSkiaRep& rep);
61
58 const gfx::ImageSkia& image_skia() const { return image_skia_; } 62 const gfx::ImageSkia& image_skia() const { return image_skia_; }
59 63
60 private: 64 private:
61 class Source; 65 class Source;
62 66
63 typedef std::map<int, ui::ScaleFactor> LoadMap; 67 typedef std::map<int, ui::ScaleFactor> LoadMap;
64 68
65 // Loads bitmap for additional scale factor. 69 // Loads bitmap for additional scale factor.
66 void LoadImageForScaleFactor(ui::ScaleFactor scale_factor); 70 void LoadImageForScaleFactor(ui::ScaleFactor scale_factor);
67 71
(...skipping 21 matching lines...) Expand all
89 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
90 94
91 LoadMap load_map_; 95 LoadMap load_map_;
92 96
93 DISALLOW_COPY_AND_ASSIGN(IconImage); 97 DISALLOW_COPY_AND_ASSIGN(IconImage);
94 }; 98 };
95 99
96 } // namespace extensions 100 } // namespace extensions
97 101
98 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_IMAGE_H_ 102 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ICON_IMAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698