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

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

Issue 2746013011: [Home] Add BottomSheetObserverTest#testSheetContentChanged (Closed)
Patch Set: 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 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; 5 package org.chromium.chrome.browser;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 8 import android.annotation.TargetApi;
9 import android.app.Activity; 9 import android.app.Activity;
10 import android.app.SearchManager; 10 import android.app.SearchManager;
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 * @return The resource id for the menu to use in {@link AppMenu}. Default i s R.menu.main_menu. 636 * @return The resource id for the menu to use in {@link AppMenu}. Default i s R.menu.main_menu.
637 */ 637 */
638 protected int getAppMenuLayoutId() { 638 protected int getAppMenuLayoutId() {
639 return R.menu.main_menu; 639 return R.menu.main_menu;
640 } 640 }
641 641
642 /** 642 /**
643 * Get the Chrome Home bottom sheet if it exists. 643 * Get the Chrome Home bottom sheet if it exists.
644 * @return The bottom sheet or null. 644 * @return The bottom sheet or null.
645 */ 645 */
646 @Nullable
646 public BottomSheet getBottomSheet() { 647 public BottomSheet getBottomSheet() {
647 return mBottomSheet; 648 return mBottomSheet;
648 } 649 }
649 650
650 /** 651 /**
652 * Get the Chrome Home bottom sheet content controller if it exists.
653 * @return The bottom sheet content controller or null.
gone 2017/03/21 17:46:51 Should probably just use {@link BottomSheetContent
Theresa 2017/03/21 22:29:24 Done.
654 */
655 @Nullable
656 public BottomSheetContentController getBottomSheetContentController() {
657 return mBottomSheetContentController;
658 }
659
660 /**
651 * @return The View used to obscure content and bring focus to a foreground view. 661 * @return The View used to obscure content and bring focus to a foreground view.
652 */ 662 */
653 public FadingBackgroundView getFadingBackgroundView() { 663 public FadingBackgroundView getFadingBackgroundView() {
654 return mFadingBackgroundView; 664 return mFadingBackgroundView;
655 } 665 }
656 666
657 /** 667 /**
658 * @return {@link AppMenuPropertiesDelegate} instance that the {@link AppMen uHandler} 668 * @return {@link AppMenuPropertiesDelegate} instance that the {@link AppMen uHandler}
659 * should be using in this activity. 669 * should be using in this activity.
660 */ 670 */
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 * draw over VR contents should be hidden in this call. 2127 * draw over VR contents should be hidden in this call.
2118 */ 2128 */
2119 public void onEnterVR() {} 2129 public void onEnterVR() {}
2120 2130
2121 /** 2131 /**
2122 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored 2132 * Called when VR mode using this activity is exited. Any state set for VR s hould be restored
2123 * in this call, including showing 2D UI that was hidden. 2133 * in this call, including showing 2D UI that was hidden.
2124 */ 2134 */
2125 public void onExitVR() {} 2135 public void onExitVR() {}
2126 } 2136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698