OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.widget; | 5 package org.chromium.chrome.browser.widget.bottomsheet; |
6 | 6 |
7 /** | 7 /** |
8 * An interface for notifications about the state of the bottom sheet. | 8 * An interface for notifications about the state of the bottom sheet. |
9 */ | 9 */ |
10 public interface BottomSheetObserver { | 10 public interface BottomSheetObserver { |
11 /** | 11 /** |
12 * A notification that the sheet has been opened, meaning the sheet is any h
eight greater | 12 * A notification that the sheet has been opened, meaning the sheet is any h
eight greater |
13 * than its peeking state. | 13 * than its peeking state. |
14 */ | 14 */ |
15 void onSheetOpened(); | 15 void onSheetOpened(); |
(...skipping 25 matching lines...) Expand all Loading... |
41 * called. This event is guaranteed to be called at least once with 0.0f in
the peeking state | 41 * called. This event is guaranteed to be called at least once with 0.0f in
the peeking state |
42 * and 1.0f at or past the half state. This means if the sheet is set to the
full state from | 42 * and 1.0f at or past the half state. This means if the sheet is set to the
full state from |
43 * the peeking state, this event will be called a single time with 1.0f. | 43 * the peeking state, this event will be called a single time with 1.0f. |
44 * | 44 * |
45 * @param transitionFraction The fraction of the way to the half expanded st
ate that the | 45 * @param transitionFraction The fraction of the way to the half expanded st
ate that the |
46 * sheet is. This will be 0.0f when the sheet is p
eeking and 1.0f | 46 * sheet is. This will be 0.0f when the sheet is p
eeking and 1.0f |
47 * when the sheet is half expanded. | 47 * when the sheet is half expanded. |
48 */ | 48 */ |
49 void onTransitionPeekToHalf(float transitionFraction); | 49 void onTransitionPeekToHalf(float transitionFraction); |
50 } | 50 } |
OLD | NEW |