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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java

Issue 2818033003: [Contextual Search] Disable narrow panel when Chrome Home is enabled (Closed)
Patch Set: Add null check for tests Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.compositor.bottombar; 5 package org.chromium.chrome.browser.compositor.bottombar;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Color; 8 import android.graphics.Color;
9 import android.view.ViewGroup; 9 import android.view.ViewGroup;
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // ========================================================================= =================== 190 // ========================================================================= ===================
191 191
192 private float mLayoutWidth; 192 private float mLayoutWidth;
193 private float mLayoutHeight; 193 private float mLayoutHeight;
194 private float mLayoutYOffset; 194 private float mLayoutYOffset;
195 195
196 private float mMaximumWidth; 196 private float mMaximumWidth;
197 private float mMaximumHeight; 197 private float mMaximumHeight;
198 198
199 private boolean mIsFullWidthSizePanelForTesting; 199 private boolean mIsFullWidthSizePanelForTesting;
200 private boolean mOverrideIsFullWidthSizePanelForTesting; 200 protected boolean mOverrideIsFullWidthSizePanelForTesting;
201 201
202 /** 202 /**
203 * Called when the layout has changed. 203 * Called when the layout has changed.
204 * 204 *
205 * @param width The new width in dp. 205 * @param width The new width in dp.
206 * @param height The new height in dp. 206 * @param height The new height in dp.
207 * @param visibleViewportOffsetY The Y offset of the content in dp. 207 * @param visibleViewportOffsetY The Y offset of the content in dp.
208 */ 208 */
209 public void onLayoutChanged(float width, float height, float visibleViewport OffsetY) { 209 public void onLayoutChanged(float width, float height, float visibleViewport OffsetY) {
210 if (width == mLayoutWidth && height == mLayoutHeight 210 if (width == mLayoutWidth && height == mLayoutHeight
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 * Overrides the FullWidthSizePanel state for testing. 1228 * Overrides the FullWidthSizePanel state for testing.
1229 * 1229 *
1230 * @param isFullWidthSizePanel Whether the Panel has a full width size. 1230 * @param isFullWidthSizePanel Whether the Panel has a full width size.
1231 */ 1231 */
1232 @VisibleForTesting 1232 @VisibleForTesting
1233 public void setIsFullWidthSizePanelForTesting(boolean isFullWidthSizePanel) { 1233 public void setIsFullWidthSizePanelForTesting(boolean isFullWidthSizePanel) {
1234 mOverrideIsFullWidthSizePanelForTesting = true; 1234 mOverrideIsFullWidthSizePanelForTesting = true;
1235 mIsFullWidthSizePanelForTesting = isFullWidthSizePanel; 1235 mIsFullWidthSizePanelForTesting = isFullWidthSizePanel;
1236 } 1236 }
1237 } 1237 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698