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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/Tab.java

Issue 1209243003: Changed the constraints for hiding the top controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index 1a5933485bfadc2b4125f5b4b18a6208adf49674..5e8308614feb134afce83aa014681ad3cd68f390 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -189,7 +189,6 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
private boolean mIsClosing;
private boolean mIsShowingErrorPage;
- private boolean mIsImeShowing;
private Bitmap mFavicon;
@@ -516,7 +515,6 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
@Override
public void onImeStateChangeRequested(boolean requestShow) {
if (getFullscreenManager() == null) return;
- mIsImeShowing = requestShow;
updateFullscreenEnabledState();
}
}
@@ -1312,7 +1310,6 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
mFullscreenHungRendererToken = FullscreenManager.INVALID_TOKEN;
mPreviousFullscreenOverdrawBottomHeight = Float.NaN;
}
- mIsImeShowing = false;
hideInternal();
@@ -2476,7 +2473,7 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener,
enableHidingTopControls &=
!AccessibilityUtil.isAccessibilityEnabled(getApplicationContext());
- enableHidingTopControls &= !mIsImeShowing;
+ enableHidingTopControls &= !mContentViewCore.isFocusedNodeEditable();
jdduke (slow) 2015/06/26 15:03:08 With this change I think we still need a way to no
Ted C 2015/06/26 16:49:53 Agreed. And while this feature is woefully under
enableHidingTopControls &= !mIsShowingErrorPage;
enableHidingTopControls &= !webContents.isShowingInterstitialPage();
enableHidingTopControls &= (mFullscreenManager != null);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698