OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
Yaron
2013/05/20 20:54:25
Nit: drop "(c)"
gone
2013/05/20 21:28:04
Done.
| |
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 |kMissingId| 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 |