diff options
author | newt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 21:03:33 +0000 |
---|---|---|
committer | newt@chromium.org <newt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 21:03:33 +0000 |
commit | 99dfcfcead2123f7ee4fe77242086eca82d38d65 (patch) | |
tree | 60f8841df84b95b5207d3d4eaad5f79005d79c0e /ui/android/java | |
parent | 4df5c3ae61bcf1bac4c65b7898406c15afa5d92a (diff) | |
download | chromium_src-99dfcfcead2123f7ee4fe77242086eca82d38d65.zip chromium_src-99dfcfcead2123f7ee4fe77242086eca82d38d65.tar.gz chromium_src-99dfcfcead2123f7ee4fe77242086eca82d38d65.tar.bz2 |
[Android Webview] Add hand-written R.java file to map ui resources.
This provides hand-maintained R.java files to enable Webview to provide
resources used in ui, and fix the current webview ToT build break.
BUG=165751
Review URL: https://codereview.chromium.org/11578034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/android/java')
-rw-r--r-- | ui/android/java/resource_map/org/chromium/ui/R.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/android/java/resource_map/org/chromium/ui/R.java b/ui/android/java/resource_map/org/chromium/ui/R.java new file mode 100644 index 0000000..53f60cc --- /dev/null +++ b/ui/android/java/resource_map/org/chromium/ui/R.java @@ -0,0 +1,22 @@ +// Copyright (c) 2012 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. + +package org.chromium.ui; + +/** + * Provide Android internal resources to Chrome's ui layer. This allows classes + * that access resources via org.chromium.ui.R to function properly in webview. + * In a normal Chrome build, ui resources live in a res folder in the ui layer + * and the org.chromium.ui.R class is generated at build time based on these + * resources. In webview, resources live in the Android framework and can't be + * accessed directly from the ui layer. Instead, we copy resources needed by ui + * into the Android framework and use this R class to map resources IDs from + * org.chromium.ui.R to com.android.internal.R. + */ +public final class R { + public static final class string { + public static int low_memory_error; + public static int opening_file_error; + } +} |