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.bottomsheet; | 5 package org.chromium.chrome.browser.widget.bottomsheet; |
6 | 6 |
| 7 import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet.BottomSheetCon
tent; |
| 8 |
7 /** | 9 /** |
8 * An empty base implementation of the {@link BottomSheetObserver} interface. | 10 * An empty base implementation of the {@link BottomSheetObserver} interface. |
9 */ | 11 */ |
10 public class EmptyBottomSheetObserver implements BottomSheetObserver { | 12 public class EmptyBottomSheetObserver implements BottomSheetObserver { |
11 @Override | 13 @Override |
12 public void onSheetOpened() {} | 14 public void onSheetOpened() {} |
13 | 15 |
14 @Override | 16 @Override |
15 public void onSheetClosed() {} | 17 public void onSheetClosed() {} |
16 | 18 |
17 @Override | 19 @Override |
18 public void onLoadUrl(String url) {} | 20 public void onLoadUrl(String url) {} |
19 | 21 |
20 @Override | 22 @Override |
21 public void onSheetOffsetChanged(float heightFraction) {} | 23 public void onSheetOffsetChanged(float heightFraction) {} |
22 | 24 |
23 @Override | 25 @Override |
24 public void onTransitionPeekToHalf(float transitionFraction) {} | 26 public void onTransitionPeekToHalf(float transitionFraction) {} |
| 27 |
| 28 @Override |
| 29 public void onSheetStateChanged(int newState) {} |
| 30 |
| 31 @Override |
| 32 public void onSheetContentChanged(BottomSheetContent newContent) {} |
25 } | 33 } |
OLD | NEW |