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. |