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

Side by Side Diff: chrome/browser/android/resource_mapper.h

Issue 14772036: Let Android port access properly sized images (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 7 years, 7 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698