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

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

Issue 2698613006: [Home] Add lifecycle events and some tests (Closed)
Patch Set: fix previous patch Created 3 years, 10 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/BottomSheetObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetObserver.java
index 37aa70e4bf05da874eb3753dc1dd1ba6c66047e7..6e4dfadee75304bf45df818870c27cef118d9755 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetObserver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetObserver.java
@@ -9,6 +9,23 @@ package org.chromium.chrome.browser.widget;
*/
public interface BottomSheetObserver {
/**
+ * A notification that the sheet has been opened, meaning the sheet is any height greater
+ * than its peeking state.
+ */
+ void onSheetOpened();
+
+ /**
+ * A notification that the sheet has closed, meaning the sheet has reached its peeking state.
+ */
+ void onSheetClosed();
+
+ /**
+ * A notification that the sheet has begun loading a URL.
+ * @param url The URL being loaded.
+ */
+ void onLoadUrl(String url);
+
+ /**
* 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.

Powered by Google App Engine
This is Rietveld 408576698