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