OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.bookmarks; | 5 package org.chromium.chrome.browser.bookmarks; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.app.ActivityManager; | 8 import android.app.ActivityManager; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.support.v4.widget.DrawerLayout; | 10 import android.support.v4.widget.DrawerLayout; |
11 import android.support.v7.widget.RecyclerView; | 11 import android.support.v7.widget.RecyclerView; |
| 12 import android.support.v7.widget.Toolbar; |
12 import android.text.TextUtils; | 13 import android.text.TextUtils; |
13 import android.view.Gravity; | 14 import android.view.Gravity; |
14 import android.view.View; | 15 import android.view.View; |
15 import android.view.ViewGroup; | 16 import android.view.ViewGroup; |
16 import android.widget.ViewSwitcher; | 17 import android.widget.ViewSwitcher; |
17 | 18 |
18 import org.chromium.base.ApiCompatibilityUtils; | 19 import org.chromium.base.ApiCompatibilityUtils; |
19 import org.chromium.base.ContextUtils; | 20 import org.chromium.base.ContextUtils; |
20 import org.chromium.base.ObserverList; | 21 import org.chromium.base.ObserverList; |
21 import org.chromium.base.metrics.RecordUserAction; | 22 import org.chromium.base.metrics.RecordUserAction; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 227 } |
227 } | 228 } |
228 return false; | 229 return false; |
229 } | 230 } |
230 | 231 |
231 public View getView() { | 232 public View getView() { |
232 return mMainView; | 233 return mMainView; |
233 } | 234 } |
234 | 235 |
235 /** | 236 /** |
236 * See {@link SelectableListLayout#detachContentView()}. | 237 * See {@link SelectableListLayout#detachToolbarView()}. |
237 */ | 238 */ |
238 public View detachContentView() { | 239 public Toolbar detachToolbarView() { |
239 return mSelectableListLayout.detachContentView(); | 240 return mSelectableListLayout.detachToolbarView(); |
240 } | 241 } |
241 | 242 |
242 /** | 243 /** |
243 * @return The vertical scroll offset of the content view. | 244 * @return The vertical scroll offset of the content view. |
244 */ | 245 */ |
245 public int getVerticalScrollOffset() { | 246 public int getVerticalScrollOffset() { |
246 return mRecyclerView.computeVerticalScrollOffset(); | 247 return mRecyclerView.computeVerticalScrollOffset(); |
247 } | 248 } |
248 | 249 |
249 /** | 250 /** |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 public int getCurrentState() { | 432 public int getCurrentState() { |
432 if (mStateStack.isEmpty()) return BookmarkUIState.STATE_LOADING; | 433 if (mStateStack.isEmpty()) return BookmarkUIState.STATE_LOADING; |
433 return mStateStack.peek().mState; | 434 return mStateStack.peek().mState; |
434 } | 435 } |
435 | 436 |
436 @Override | 437 @Override |
437 public LargeIconBridge getLargeIconBridge() { | 438 public LargeIconBridge getLargeIconBridge() { |
438 return mLargeIconBridge; | 439 return mLargeIconBridge; |
439 } | 440 } |
440 } | 441 } |
OLD | NEW |