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

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

Issue 2630513003: Expand bottom sheet when URL bar is focused (Closed)
Patch Set: address comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
index c3d44906522197779a5eea376b5b8b7f6c03e4a2..8a40c1376b79e61d3135b91b862c66ca5caa6786 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
@@ -235,6 +235,7 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
private AppMenuPropertiesDelegate mAppMenuPropertiesDelegate;
private AppMenuHandler mAppMenuHandler;
private ToolbarManager mToolbarManager;
+ private BottomSheet mBottomSheet;
// Time in ms that it took took us to inflate the initial layout
private long mInflateInitialLayoutDurationMs;
@@ -389,8 +390,8 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
// Get a handle to the bottom sheet if using the bottom control container.
if (controlContainerLayoutId == R.layout.bottom_control_container) {
View coordinator = findViewById(R.id.coordinator);
- BottomSheet bottomSheet = (BottomSheet) findViewById(R.id.bottom_sheet);
- bottomSheet.init(coordinator, controlContainer.getView());
+ mBottomSheet = (BottomSheet) findViewById(R.id.bottom_sheet);
+ mBottomSheet.init(coordinator, controlContainer.getView());
}
// Inflate the correct toolbar layout for the device.
@@ -587,6 +588,14 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
}
/**
+ * Get the Chrome Home bottom sheet if it exists.
+ * @return The bottom sheet or null.
+ */
+ public BottomSheet getBottomSheet() {
+ return mBottomSheet;
+ }
+
+ /**
* @return {@link AppMenuPropertiesDelegate} instance that the {@link AppMenuHandler}
* should be using in this activity.
*/
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698