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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetObserver.java

Issue 2892953005: [Home] Show bottom nav above keyboard (Closed)
Patch Set: rebase; remove window delegate Created 3 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/widget/bottomsheet/BottomSheetObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetObserver.java
index 84ca3d8673d846e1d0ec8472d6754982d60c3927..8f67e6fa25a648f42b0735f039ff11bec452a224 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetObserver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetObserver.java
@@ -45,6 +45,14 @@ public interface BottomSheetObserver {
void onSheetOffsetChanged(float heightFraction);
/**
+ * A notification that the dimensions of the sheet has changed. The container height will be
+ * different from the window height when the keyboard is showing.
+ * @param windowHeight The height of the window in px.
+ * @param containerHeight The height of the bottom sheet's container in px.
+ */
+ void onSheetLayout(int windowHeight, int containerHeight);
+
+ /**
* An event for when the sheet is transitioning from the peeking state to the half expanded
* state. Once the sheet is outside the peek-half range, this event will no longer be
* called. This event is guaranteed to be called at least once with 0.0f in the peeking state

Powered by Google App Engine
This is Rietveld 408576698