Index: chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java |
index c84d09a0fd1e48cbe325b73c5b897f3815facccf..55e34bfa6ef74f7f04f2168c629bfdad57511044 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java |
@@ -441,6 +441,22 @@ public class BottomSheet |
} |
/** |
+ * Gets the minimum offset of the bottom sheet. |
+ * @return The min offset. |
+ */ |
+ public float getMinOffset() { |
+ return getPeekRatio() * mContainerHeight; |
+ } |
+ |
+ /** |
+ * Gets the sheet's offset from the bottom of the screen. |
+ * @return The sheet's distance from the bottom of the screen. |
+ */ |
+ public float getSheetOffsetFromBottom() { |
+ return mContainerHeight - getTranslationY(); |
+ } |
+ |
+ /** |
* Determines if a touch event is inside the toolbar. This assumes the toolbar is the full |
* width of the screen and that the toolbar is at the top of the bottom sheet. |
* @param e The motion event to test. |
@@ -590,22 +606,6 @@ public class BottomSheet |
} |
/** |
- * Gets the minimum offset of the bottom sheet. |
- * @return The min offset. |
- */ |
- private float getMinOffset() { |
- return getPeekRatio() * mContainerHeight; |
- } |
- |
- /** |
- * Gets the sheet's offset from the bottom of the screen. |
- * @return The sheet's distance from the bottom of the screen. |
- */ |
- private float getSheetOffsetFromBottom() { |
- return mContainerHeight - getTranslationY(); |
- } |
- |
- /** |
* Sets the sheet's offset relative to the bottom of the screen. |
* @param offset The offset that the sheet should be. |
*/ |