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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java

Issue 1589023003: [Contextual Search] Enable for fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move a couple of methods Created 4 years, 11 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
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
index da3742d08f0f94ff80632d7ca4eb8d28b8f20395..a21150ce97e954742b412f3caca6f1d48ed77816 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/phone/ContextualSearchLayout.java
@@ -78,13 +78,14 @@ public class ContextualSearchLayout extends ContextualSearchSupportedLayout {
* @param width The new width in dp.
* @param height The new height in dp.
*/
+ @Override
Theresa 2016/01/14 20:26:02 Note: this annotation was missing; this method ove
Donn Denman 2016/01/14 20:44:34 Acknowledged.
protected void onSizeChanged(float width, float height) {
if (mBaseTab != null) {
OverlayPanel panel = mPanelManager.getActivePanel();
if (panel != null) {
mBaseTab.setMaxContentWidth(width);
- mBaseTab.setMaxContentHeight(panel.getMaximumHeight());
- mBaseTab.setContentSize(width, panel.getMaximumHeight());
+ mBaseTab.setMaxContentHeight(panel.getFullscreenHeight());
Theresa 2016/01/14 20:26:02 Without this change I was seeing a bug in narrow p
+ mBaseTab.setContentSize(width, panel.getFullscreenHeight());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698