OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_RESOURCE_MAPPER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_RESOURCE_MAPPER_H_ |
| 7 |
| 8 // Enumerates IDs of resources used in the Android port of Chromium. This is |
| 9 // needed so that Android knows which Drawable is needed in the Java UI. |
| 10 class ResourceMapper { |
| 11 public: |
| 12 // ID indicating that the map failed to find a Drawable corresponding to the |
| 13 // Chromium resource. |
| 14 static const int kMissingID; |
| 15 |
| 16 // Converts the given chromium |resource_id| (e.g. IDR_INFOBAR_TRANSLATE) to |
| 17 // an enumerated ID. Returns the invalid ID if a mapping wasn't found. |
| 18 static int MapFromChromiumID(int resource_id); |
| 19 }; |
| 20 |
| 21 #endif // CHROME_BROWSER_ANDROID_RESOURCE_MAPPER_H_ |
OLD | NEW |