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

Unified Diff: chrome/browser/android/android_theme_resources.h

Issue 1384153003: Introduce a way to define Android-only IDR values that doesn't require (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shortcircuit pointless lookup Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/android_theme_resources.h
diff --git a/chrome/browser/android/android_theme_resources.h b/chrome/browser/android/android_theme_resources.h
new file mode 100644
index 0000000000000000000000000000000000000000..34599b054271830ee80507f538f2d58de8338a2b
--- /dev/null
+++ b/chrome/browser/android/android_theme_resources.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_ANDROID_THEME_RESOURCES_H_
+#define CHROME_BROWSER_ANDROID_ANDROID_THEME_RESOURCES_H_
+
+// LINK_RESOURCE_ID will use an ID defined by grit, so no-op.
+#define LINK_RESOURCE_ID(c_id, java_id)
+// For DECLARE_RESOURCE_ID, make an entry in an enum.
+#define DECLARE_RESOURCE_ID(c_id, java_id) c_id,
+
+enum {
+ // Not used; just provides a starting value for the enum. These must
+ // not conflict with IDR_* values, which top out at 2^16 - 1.
+ ANDROID_RESOURCE_ID_NONE = 1 << 16,
+#include "chrome/browser/android/resource_id.h"
+};
+
+#undef LINK_RESOURCE_ID
+#undef DECLARE_RESOURCE_ID
+
+#endif // CHROME_BROWSER_ANDROID_ANDROID_THEME_RESOURCES_H_
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/android/fullscreen/fullscreen_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698