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.history; | 5 package org.chromium.chrome.browser.history; |
6 | 6 |
7 import android.support.v7.widget.Toolbar; | 7 import android.support.v7.widget.Toolbar; |
8 import android.view.View; | 8 import android.view.View; |
9 | 9 |
10 import org.chromium.chrome.browser.ChromeActivity; | 10 import org.chromium.chrome.browser.ChromeActivity; |
11 import org.chromium.chrome.browser.toolbar.BottomToolbarPhone; | 11 import org.chromium.chrome.browser.toolbar.BottomToolbarPhone; |
12 import org.chromium.chrome.browser.widget.BottomSheet.BottomSheetContent; | 12 import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet.BottomSheetCon
tent; |
13 | 13 |
14 /** | 14 /** |
15 * A {@link BottomSheetContent} holding a {@link HistoryManager} for display in
the BottomSheet. | 15 * A {@link BottomSheetContent} holding a {@link HistoryManager} for display in
the BottomSheet. |
16 */ | 16 */ |
17 public class HistorySheetContent implements BottomSheetContent { | 17 public class HistorySheetContent implements BottomSheetContent { |
18 private final View mContentView; | 18 private final View mContentView; |
19 private final Toolbar mToolbarView; | 19 private final Toolbar mToolbarView; |
20 private HistoryManager mHistoryManager; | 20 private HistoryManager mHistoryManager; |
21 | 21 |
22 /** | 22 /** |
(...skipping 21 matching lines...) Expand all Loading... |
44 public int getVerticalScrollOffset() { | 44 public int getVerticalScrollOffset() { |
45 return mHistoryManager.getVerticalScrollOffset(); | 45 return mHistoryManager.getVerticalScrollOffset(); |
46 } | 46 } |
47 | 47 |
48 @Override | 48 @Override |
49 public void destroy() { | 49 public void destroy() { |
50 mHistoryManager.onDestroyed(); | 50 mHistoryManager.onDestroyed(); |
51 mHistoryManager = null; | 51 mHistoryManager = null; |
52 } | 52 } |
53 } | 53 } |
OLD | NEW |