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

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

Issue 2807663002: 📺 Move fullscreen web content to a new Activity. (Closed)
Patch Set: Fix test. Created 3 years, 7 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 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 * the tab holds frozen WebContents state that is yet to be inflated. 2432 * the tab holds frozen WebContents state that is yet to be inflated.
2433 */ 2433 */
2434 @VisibleForTesting 2434 @VisibleForTesting
2435 public boolean isFrozen() { 2435 public boolean isFrozen() {
2436 return getNativePage() == null && getContentViewCore() == null; 2436 return getNativePage() == null && getContentViewCore() == null;
2437 } 2437 }
2438 2438
2439 /** 2439 /**
2440 * @return An instance of a {@link FullscreenManager}. 2440 * @return An instance of a {@link FullscreenManager}.
2441 */ 2441 */
2442 protected FullscreenManager getFullscreenManager() { 2442 public FullscreenManager getFullscreenManager() {
2443 return mFullscreenManager; 2443 return mFullscreenManager;
2444 } 2444 }
2445 2445
2446 /** 2446 /**
2447 * Toggles fullscreen mode and notifies all observers. 2447 * Toggles fullscreen mode and notifies all observers.
2448 * @param enableFullscreen Whether fullscreen should be enabled. 2448 * @param enableFullscreen Whether fullscreen should be enabled.
2449 */ 2449 */
2450 public void toggleFullscreenMode(boolean enableFullscreen) { 2450 public void toggleFullscreenMode(boolean enableFullscreen) {
2451 if (mFullscreenManager != null) { 2451 if (mFullscreenManager != null) {
2452 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen); 2452 mFullscreenManager.setPersistentFullscreenMode(enableFullscreen);
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 private native boolean nativeIsOfflinePage(long nativeTabAndroid); 3097 private native boolean nativeIsOfflinePage(long nativeTabAndroid);
3098 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid); 3098 private native OfflinePageItem nativeGetOfflinePage(long nativeTabAndroid);
3099 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id, 3099 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro id,
3100 InterceptNavigationDelegate delegate); 3100 InterceptNavigationDelegate delegate);
3101 private native void nativeAttachToTabContentManager(long nativeTabAndroid, 3101 private native void nativeAttachToTabContentManager(long nativeTabAndroid,
3102 TabContentManager tabContentManager); 3102 TabContentManager tabContentManager);
3103 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3103 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3104 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope); 3104 private native void nativeSetWebappManifestScope(long nativeTabAndroid, Stri ng scope);
3105 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled); 3105 private native void nativeEnableEmbeddedMediaExperience(long nativeTabAndroi d, boolean enabled);
3106 } 3106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698