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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwResource.java

Issue 11280284: onShowCustomView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually using it .... Created 8 years 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: android_webview/java/src/org/chromium/android_webview/AwResource.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwResource.java b/android_webview/java/src/org/chromium/android_webview/AwResource.java
index e98be0b03513cbc82319c6ba883ed77cc59b8df5..8d65e16637c2146ebf41a7febafdb83b4f655187 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwResource.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwResource.java
@@ -33,6 +33,13 @@ public class AwResource {
// String resource ID for the default text encoding to use.
public static int STRING_DEFAULT_TEXT_ENCODING;
+ // String for full screen video.
+ public static int STRING_VIDEO_INVALID_PLAYBACK;
benm (inactive) 2012/12/10 10:54:35 As these are resources defined in content/, you sh
acleung 2013/01/07 23:40:03 I don't fully follow. I am getting these resource
benm (inactive) 2013/01/08 12:31:51 You're right to get them from the android framewor
+ public static int STRING_VIDEO_ERROR_UNKNOWN;
+ public static int STRING_VIDEO_ERROR_BUTTON;
+ public static int STRING_VIDEO_ERROR_TITLE;
+ public static int STRING_VIDEO_LOADING;
+
// The embedder should inject a Resources object that will be used
// to resolve Resource IDs into the actual resources.
private static Resources sResources;
@@ -48,6 +55,26 @@ public class AwResource {
sResourceCache = new HashMap<Integer, SoftReference<String> >();
}
+ public static String getVideoInvalidPlayback() {
+ return getResource(STRING_VIDEO_INVALID_PLAYBACK, TYPE_STRING);
+ }
+
+ public static String getVideoErrorUnknown() {
+ return getResource(STRING_VIDEO_ERROR_UNKNOWN, TYPE_STRING);
+ }
+
+ public static String getVideoErrorButton() {
+ return getResource(STRING_VIDEO_ERROR_BUTTON, TYPE_STRING);
+ }
+
+ public static String getVideoErrorTitle() {
+ return getResource(STRING_VIDEO_ERROR_TITLE, TYPE_STRING);
+ }
+
+ public static String getVideoLoading() {
+ return getResource(STRING_VIDEO_LOADING, TYPE_STRING);
+ }
+
@CalledByNative
public static String getDefaultTextEncoding() {
return getResource(STRING_DEFAULT_TEXT_ENCODING, TYPE_STRING);

Powered by Google App Engine
This is Rietveld 408576698