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

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

Issue 1716653002: Implement OverlayPanels as SceneOverlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent native call in test Created 4 years, 7 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/bottombar/OverlayPanelBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
index 2c4cd8d81287f5b9a9e1551bb28918b162a44937..553cb261a484fd8735cb97ad57cb08e46d9f9f94 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java
@@ -276,7 +276,8 @@ abstract class OverlayPanelBase {
}
/**
- * @return Whether the Overlay Panel is opened. That is, whether it is EXPANDED or MAXIMIZED.
+ * @return Whether the Overlay Panel is opened. That is, whether the current height is greater
+ * than the peeking height.
*/
public boolean isPanelOpened() {
return mHeight > mBarHeightPeeking;
@@ -491,8 +492,8 @@ abstract class OverlayPanelBase {
// Base Page states
// --------------------------------------------------------------------------------------------
- private float mBasePageY;
- private float mBasePageBrightness;
+ private float mBasePageY = 0.0f;
+ private float mBasePageBrightness = 1.0f;
/**
* @return The vertical offset of the base page.

Powered by Google App Engine
This is Rietveld 408576698