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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 2764673002: Embedded media: Rotate to fullscreen
Patch Set: Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.chrome.browser.tab; 5 package org.chromium.chrome.browser.tab;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.Application; 9 import android.app.Application;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 3023 matching lines...) Expand 10 before | Expand all | Expand 10 after
3034 3034
3035 /** 3035 /**
3036 * Configures web preferences for viewing downloaded media. 3036 * Configures web preferences for viewing downloaded media.
3037 * @param enabled Whether embedded media experience should be enabled. 3037 * @param enabled Whether embedded media experience should be enabled.
3038 */ 3038 */
3039 public void enableEmbeddedMediaExperience(boolean enabled) { 3039 public void enableEmbeddedMediaExperience(boolean enabled) {
3040 if (mNativeTabAndroid == 0) return; 3040 if (mNativeTabAndroid == 0) return;
3041 nativeEnableEmbeddedMediaExperience(mNativeTabAndroid, enabled); 3041 nativeEnableEmbeddedMediaExperience(mNativeTabAndroid, enabled);
3042 } 3042 }
3043 3043
3044 public boolean getEmbeddedMediaExperienceEnabled() {
3045 if (mNativeTabAndroid == 0) return false;
3046 return nativeGetEmbeddedMediaExperienceEnabled(mNativeTabAndroid);
3047 }
3048
3044 private native void nativeInit(); 3049 private native void nativeInit();
3045 private native void nativeDestroy(long nativeTabAndroid); 3050 private native void nativeDestroy(long nativeTabAndroid);
3046 private native void nativeInitWebContents(long nativeTabAndroid, boolean inc ognito, 3051 private native void nativeInitWebContents(long nativeTabAndroid, boolean inc ognito,
3047 WebContents webContents, TabWebContentsDelegateAndroid delegate, 3052 WebContents webContents, TabWebContentsDelegateAndroid delegate,
3048 ContextMenuPopulator contextMenuPopulator); 3053 ContextMenuPopulator contextMenuPopulator);
3049 private native void nativeUpdateDelegates(long nativeTabAndroid, 3054 private native void nativeUpdateDelegates(long nativeTabAndroid,
3050 TabWebContentsDelegateAndroid delegate, ContextMenuPopulator context MenuPopulator); 3055 TabWebContentsDelegateAndroid delegate, ContextMenuPopulator context MenuPopulator);
3051 private native void nativeDestroyWebContents(long nativeTabAndroid, boolean deleteNative); 3056 private native void nativeDestroyWebContents(long nativeTabAndroid, boolean deleteNative);
3052 private native Profile nativeGetProfileAndroid(long nativeTabAndroid); 3057 private native Profile nativeGetProfileAndroid(long nativeTabAndroid);
3053 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e xtraHeaders, 3058 private native int nativeLoadUrl(long nativeTabAndroid, String url, String e xtraHeaders,
(...skipping 11 matching lines...) Expand all
3065 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable); 3070 private native long nativeGetBookmarkId(long nativeTabAndroid, boolean onlyE ditable);
3066 private native boolean nativeIsOfflinePage(long nativeTabAndroid); 3071 private native boolean nativeIsOfflinePage(long nativeTabAndroid);
3067 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid); 3072 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid);
3068 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id, 3073 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id,
3069 InterceptNavigationDelegate delegate); 3074 InterceptNavigationDelegate delegate);
3070 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 3075 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
3071 TabContentManager tabContentManager); 3076 TabContentManager tabContentManager);
3072 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3077 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3073 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope); 3078 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope);
3074 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled); 3079 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled);
3080 private native boolean nativeGetEmbeddedMediaExperienceEnabled(long nativeTa bAndroid);
3075 } 3081 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698