Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/history/HistorySheetContent.java

Issue 2753773006: [Home] Move bottom sheet classes to widget/bottomsheet (Closed)
Patch Set: Fix bottom_sheet_bottom_nav.xml Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698