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

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

Issue 1536623003: [Contextual Search] Keep Panel upon orientation change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Changwan's comments Created 5 years 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/ContextualSearchSupportedLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/ContextualSearchSupportedLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/ContextualSearchSupportedLayout.java
index 906b7a11eeb132c606066d446346fe491aadd04b..f98cd0ef22d4fd0dfd086a7c461e53066d24f3c1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/ContextualSearchSupportedLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/ContextualSearchSupportedLayout.java
@@ -122,6 +122,16 @@ public abstract class ContextualSearchSupportedLayout extends Layout {
final boolean isToolbarVisible = getHeight() - getHeightMinusTopControls() <= mHalfPixelDp;
mPanelManager.onSizeChanged(width, height, isToolbarVisible);
+ onSizeChanged(width, height);
+ }
+
+ /**
+ * Handles the resizing of the view.
+ * @param width The new width in dp.
+ * @param height The new height in dp.
+ */
+ protected void onSizeChanged(float width, float height) {
+ // NOTE(pedrosimonetti): To be implemented by a supported Layout.
}
@Override

Powered by Google App Engine
This is Rietveld 408576698