OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |