OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RESOURCES_UTIL_H_ | 5 #ifndef CHROME_BROWSER_RESOURCES_UTIL_H_ |
6 #define CHROME_BROWSER_RESOURCES_UTIL_H_ | 6 #define CHROME_BROWSER_RESOURCES_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 | 11 |
12 class ResourcesUtil { | 12 class ResourcesUtil { |
13 public: | 13 public: |
14 // Returns the theme resource id or -1 if no resource with the name exists. | 14 // Returns the theme resource id or -1 if no resource with the name exists. |
15 static int GetThemeResourceId(const std::string& resource_name); | 15 static int GetThemeResourceId(const std::string& resource_name); |
16 | 16 |
17 private: | 17 private: |
18 ResourcesUtil() {} | 18 ResourcesUtil() {} |
| 19 |
19 DISALLOW_COPY_AND_ASSIGN(ResourcesUtil); | 20 DISALLOW_COPY_AND_ASSIGN(ResourcesUtil); |
20 }; | 21 }; |
21 | 22 |
22 #endif // CHROME_BROWSER_RESOURCES_UTIL_H_ | 23 #endif // CHROME_BROWSER_RESOURCES_UTIL_H_ |
OLD | NEW |