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

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

Issue 1367313002: Fix ChromeSwitches.DISABLE_FULLSCREEN to not overlap content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.TargetApi; 7 import android.annotation.TargetApi;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.ActivityManager; 9 import android.app.ActivityManager;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 import org.chromium.chrome.browser.WebContentsFactory; 59 import org.chromium.chrome.browser.WebContentsFactory;
60 import org.chromium.chrome.browser.banners.AppBannerManager; 60 import org.chromium.chrome.browser.banners.AppBannerManager;
61 import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager; 61 import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
62 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuItemDelegate; 62 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuItemDelegate;
63 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator; 63 import org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator;
64 import org.chromium.chrome.browser.contextmenu.ContextMenuParams; 64 import org.chromium.chrome.browser.contextmenu.ContextMenuParams;
65 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator; 65 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulator;
66 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulatorWrapper; 66 import org.chromium.chrome.browser.contextmenu.ContextMenuPopulatorWrapper;
67 import org.chromium.chrome.browser.crash.MinidumpUploadService; 67 import org.chromium.chrome.browser.crash.MinidumpUploadService;
68 import org.chromium.chrome.browser.customtabs.CustomTabActivity; 68 import org.chromium.chrome.browser.customtabs.CustomTabActivity;
69 import org.chromium.chrome.browser.device.DeviceClassManager;
69 import org.chromium.chrome.browser.document.DocumentUtils; 70 import org.chromium.chrome.browser.document.DocumentUtils;
70 import org.chromium.chrome.browser.document.DocumentWebContentsDelegate; 71 import org.chromium.chrome.browser.document.DocumentWebContentsDelegate;
71 import org.chromium.chrome.browser.download.ChromeDownloadDelegate; 72 import org.chromium.chrome.browser.download.ChromeDownloadDelegate;
72 import org.chromium.chrome.browser.fullscreen.FullscreenManager; 73 import org.chromium.chrome.browser.fullscreen.FullscreenManager;
73 import org.chromium.chrome.browser.help.HelpAndFeedback; 74 import org.chromium.chrome.browser.help.HelpAndFeedback;
74 import org.chromium.chrome.browser.infobar.InfoBarContainer; 75 import org.chromium.chrome.browser.infobar.InfoBarContainer;
75 import org.chromium.chrome.browser.media.MediaCaptureNotificationService; 76 import org.chromium.chrome.browser.media.MediaCaptureNotificationService;
76 import org.chromium.chrome.browser.metrics.UmaSessionStats; 77 import org.chromium.chrome.browser.metrics.UmaSessionStats;
77 import org.chromium.chrome.browser.metrics.UmaUtils; 78 import org.chromium.chrome.browser.metrics.UmaUtils;
78 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; 79 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings;
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2917 int securityState = getSecurityLevel(); 2918 int securityState = getSecurityLevel();
2918 enableHidingTopControls &= (securityState != ConnectionSecurityLevel.SEC URITY_ERROR 2919 enableHidingTopControls &= (securityState != ConnectionSecurityLevel.SEC URITY_ERROR
2919 && securityState != ConnectionSecurityLevel.SECURITY_WARNING); 2920 && securityState != ConnectionSecurityLevel.SECURITY_WARNING);
2920 2921
2921 enableHidingTopControls &= 2922 enableHidingTopControls &=
2922 !AccessibilityUtil.isAccessibilityEnabled(getApplicationContext( )); 2923 !AccessibilityUtil.isAccessibilityEnabled(getApplicationContext( ));
2923 enableHidingTopControls &= !mContentViewCore.isFocusedNodeEditable(); 2924 enableHidingTopControls &= !mContentViewCore.isFocusedNodeEditable();
2924 enableHidingTopControls &= !mIsShowingErrorPage; 2925 enableHidingTopControls &= !mIsShowingErrorPage;
2925 enableHidingTopControls &= !webContents.isShowingInterstitialPage(); 2926 enableHidingTopControls &= !webContents.isShowingInterstitialPage();
2926 enableHidingTopControls &= (mFullscreenManager != null); 2927 enableHidingTopControls &= (mFullscreenManager != null);
2928 enableHidingTopControls &= DeviceClassManager.enableFullscreen();
2927 2929
2928 return enableHidingTopControls; 2930 return enableHidingTopControls;
2929 } 2931 }
2930 2932
2931 /** 2933 /**
2932 * Performs any subclass-specific tasks when the Tab crashes. 2934 * Performs any subclass-specific tasks when the Tab crashes.
2933 */ 2935 */
2934 private void handleTabCrash() { 2936 private void handleTabCrash() {
2935 if (mTabUma != null) mTabUma.onRendererCrashed(); 2937 if (mTabUma != null) mTabUma.onRendererCrashed();
2936 2938
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3318 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid , 3320 private native void nativeAttachOverlayContentViewCore(long nativeTabAndroid ,
3319 ContentViewCore content, boolean visible); 3321 ContentViewCore content, boolean visible);
3320 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid , 3322 private native void nativeDetachOverlayContentViewCore(long nativeTabAndroid ,
3321 ContentViewCore content); 3323 ContentViewCore content);
3322 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url); 3324 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String url);
3323 private native void nativeOnRendererUnresponsive(long nativeTabAndroid); 3325 private native void nativeOnRendererUnresponsive(long nativeTabAndroid);
3324 private native void nativeOnRendererResponsive(long nativeTabAndroid); 3326 private native void nativeOnRendererResponsive(long nativeTabAndroid);
3325 3327
3326 private static native void nativeRecordStartupToCommitUma(); 3328 private static native void nativeRecordStartupToCommitUma();
3327 } 3329 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698