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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2154883003: Make ContentVideoView progress view visible in WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Take into account whether Spitzer is enabled Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.content.ComponentCallbacks2; 10 import android.content.ComponentCallbacks2;
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 } 1257 }
1258 1258
1259 public static long getAwDrawGLFunction() { 1259 public static long getAwDrawGLFunction() {
1260 return AwGLFunctor.getAwDrawGLFunction(); 1260 return AwGLFunctor.getAwDrawGLFunction();
1261 } 1261 }
1262 1262
1263 public static void setShouldDownloadFavicons() { 1263 public static void setShouldDownloadFavicons() {
1264 nativeSetShouldDownloadFavicons(); 1264 nativeSetShouldDownloadFavicons();
1265 } 1265 }
1266 1266
1267 public static boolean isUnifiedMediaPipelineEnabled() {
boliu 2016/07/22 22:57:31 going through AwContents makes no sense here can
Tima Vaisburd 2016/07/23 00:07:27 Thank you, will do.
Tima Vaisburd 2016/07/23 03:50:58 Hm, I could not find a good place in media/base/an
liberato (no reviews please) 2016/07/25 15:43:28 i think that MediaCodecUtils is fine. if we don't
1268 return nativeIsUnifiedMediaPipelineEnabled();
1269 }
1270
1267 public static Activity activityFromContext(Context context) { 1271 public static Activity activityFromContext(Context context) {
1268 return WindowAndroid.activityFromContext(context); 1272 return WindowAndroid.activityFromContext(context);
1269 } 1273 }
1270 /** 1274 /**
1271 * Disables contents of JS-to-Java bridge objects to be inspectable using 1275 * Disables contents of JS-to-Java bridge objects to be inspectable using
1272 * Object.keys() method and "for .. in" loops. This is intended for applicat ions 1276 * Object.keys() method and "for .. in" loops. This is intended for applicat ions
1273 * targeting earlier Android releases where this was not possible, and we wa nt 1277 * targeting earlier Android releases where this was not possible, and we wa nt
1274 * to ensure backwards compatible behavior. 1278 * to ensure backwards compatible behavior.
1275 */ 1279 */
1276 public void disableJavascriptInterfacesInspection() { 1280 public void disableJavascriptInterfacesInspection() {
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after
3274 3278
3275 private static native long nativeInit(AwBrowserContext browserContext); 3279 private static native long nativeInit(AwBrowserContext browserContext);
3276 private static native void nativeDestroy(long nativeAwContents); 3280 private static native void nativeDestroy(long nativeAwContents);
3277 private static native void nativeSetForceAuxiliaryBitmapRendering( 3281 private static native void nativeSetForceAuxiliaryBitmapRendering(
3278 boolean forceAuxiliaryBitmapRendering); 3282 boolean forceAuxiliaryBitmapRendering);
3279 private static native void nativeSetAwDrawSWFunctionTable(long functionTable Pointer); 3283 private static native void nativeSetAwDrawSWFunctionTable(long functionTable Pointer);
3280 private static native void nativeSetAwDrawGLFunctionTable(long functionTable Pointer); 3284 private static native void nativeSetAwDrawGLFunctionTable(long functionTable Pointer);
3281 private static native int nativeGetNativeInstanceCount(); 3285 private static native int nativeGetNativeInstanceCount();
3282 private static native void nativeSetShouldDownloadFavicons(); 3286 private static native void nativeSetShouldDownloadFavicons();
3283 private static native void nativeSetLocale(String locale); 3287 private static native void nativeSetLocale(String locale);
3288 private static native boolean nativeIsUnifiedMediaPipelineEnabled();
3284 3289
3285 private native void nativeSetJavaPeers(long nativeAwContents, AwContents awC ontents, 3290 private native void nativeSetJavaPeers(long nativeAwContents, AwContents awC ontents,
3286 AwWebContentsDelegate webViewWebContentsDelegate, 3291 AwWebContentsDelegate webViewWebContentsDelegate,
3287 AwContentsClientBridge contentsClientBridge, 3292 AwContentsClientBridge contentsClientBridge,
3288 AwContentsIoThreadClient ioThreadClient, 3293 AwContentsIoThreadClient ioThreadClient,
3289 InterceptNavigationDelegate navigationInterceptionDelegate); 3294 InterceptNavigationDelegate navigationInterceptionDelegate);
3290 private native WebContents nativeGetWebContents(long nativeAwContents); 3295 private native WebContents nativeGetWebContents(long nativeAwContents);
3291 private native void nativeSetAwGLFunctor(long nativeAwContents, long nativeA wGLFunctor); 3296 private native void nativeSetAwGLFunctor(long nativeAwContents, long nativeA wGLFunctor);
3292 3297
3293 private native void nativeDocumentHasImages(long nativeAwContents, Message m essage); 3298 private native void nativeDocumentHasImages(long nativeAwContents, Message m essage);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
3355 long resources); 3360 long resources);
3356 3361
3357 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId, 3362 private native void nativePostMessageToFrame(long nativeAwContents, String f rameId,
3358 String message, String targetOrigin, int[] msgPorts); 3363 String message, String targetOrigin, int[] msgPorts);
3359 3364
3360 private native void nativeCreateMessageChannel(long nativeAwContents, AwMess agePort[] ports); 3365 private native void nativeCreateMessageChannel(long nativeAwContents, AwMess agePort[] ports);
3361 3366
3362 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents); 3367 private native void nativeGrantFileSchemeAccesstoChildProcess(long nativeAwC ontents);
3363 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents); 3368 private native void nativeResumeLoadingCreatedPopupWebContents(long nativeAw Contents);
3364 } 3369 }
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java ('k') | android_webview/native/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698