Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
..
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
grit_resources_allowlist.txt 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
grit_strings_allowlist.txt 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago

README.md

Android WebView Resources

This folder is responsible for managing WebView’s application resources. Please also consult general UI/localization information for the chromium repository.

Note: The original grd files located here had no content and were removed in crrev/c/3606985.

Adding a WebView-specific Android/Java string

The process is again similar to the general instructions. Use //android_webview/java/strings/android_webview_strings.grd. A string IDS_MY_STRING can be accessed in Java with org.chromium.android_webview.R.string.MY_STRING.

Resources are added under //android_webview/java/res/. Similarly, a resource drawable-xxxhdpi/ic_play_circle_outline_black_48dp.png can be accessed in Java with org.chromium.android_webview.R.drawable.ic_play_circle_outline_black_48dp.

Note: WebView-specific resources are prefixed by the org.chromium.android_webview package name.

Shared/common resources

WebView can use strings and resources defined in GRD files in other layers (for now, only //components/). Unlike other Chrome, we trim out all such resources by default. To use these resources, you must add the resource to the appropriate allowlist file: grit_strings_allowlist.txt for IDS_* strings or grit_resources_allowlist.txt for IDR_* resources.

Note: Inflating a non-allowlisted resource triggers a DCHECK (in release builds, this usually inflates to empty content).