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

Unified Diff: content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java

Issue 10626017: Provide a common interface for all Android app resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing Java import. Created 8 years, 6 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: content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java
diff --git a/content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java b/content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java
index 4f6c8f724a695893bd6a62e0aa072b2388625eec..9271e5eb5673ce1f9ef071d7e7bdcec64cfe6b83 100644
--- a/content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java
+++ b/content/shell/android/java/org/chromium/content_shell/ContentShellActivity.java
@@ -11,6 +11,7 @@ import android.text.TextUtils;
import android.util.Log;
import android.view.KeyEvent;
+import org.chromium.content.app.AppResource;
import org.chromium.content.app.LibraryLoader;
import org.chromium.content.browser.ContentView;
import org.chromium.content.common.CommandLine;
@@ -98,7 +99,7 @@ public class ContentShellActivity extends Activity {
}
private void initializeContentViewResources() {
- ContentView.registerPopupOverlayCornerRadius(0);
- ContentView.registerPopupOverlayResourceId(R.drawable.popup_zoomer_overlay);
+ AppResource.DIMENSION_LINK_PREVIEW_OVERLAY_RADIUS = R.dimen.link_preview_overlay_radius;
+ AppResource.DRAWABLE_LINK_PREVIEW_POPUP_OVERLAY = R.drawable.popup_zoomer_overlay;
}
}
« no previous file with comments | « content/public/android/java/org/chromium/content/browser/ContentView.java ('k') | content/shell/android/res/values/dimens.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698