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

Side by Side Diff: chrome/common/extensions/extension_icon_set.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: forgot to update tests 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
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_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 // Gets path value of the icon found when searching for |size| using 37 // Gets path value of the icon found when searching for |size| using
38 // |mathc_type|. 38 // |mathc_type|.
39 std::string Get(int size, MatchType match_type) const; 39 std::string Get(int size, MatchType match_type) const;
40 40
41 // Returns true iff the set contains the specified path. 41 // Returns true iff the set contains the specified path.
42 bool ContainsPath(const std::string& path) const; 42 bool ContainsPath(const std::string& path) const;
43 43
44 // Returns icon size if the set contains the specified path or 0 if not found. 44 // Returns icon size if the set contains the specified path or 0 if not found.
45 int GetIconSizeFromPath(const std::string& path) const; 45 int GetIconSizeFromPath(const std::string& path) const;
46 46
47 // Populates |destination| with all icon paths contained in the set.
48 // Previous content of |*destination| will be cleared.
49 void CopyForTest(ExtensionIconSet* destination) const;
Jeffrey Yasskin 2012/09/17 20:18:39 Despite the fact that this is only used in tests,
tbarzic 2012/09/17 22:06:10 Done.
50
47 private: 51 private:
48 IconMap map_; 52 IconMap map_;
49 }; 53 };
50 54
51 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_ 55 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ICON_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698