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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java

Issue 1237913002: [Contextual Search] Adds basic support for narrow Search Panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync & rebase Created 5 years, 5 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
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java
index 581a9a21408f0c393337307c28566a9790a95aa3..43210b50482d8893b788ee7f52f625217c5760c5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java
@@ -12,6 +12,11 @@ import org.chromium.chrome.browser.compositor.bottombar.contextualsearch.Context
*/
public interface ContextualSearchPanelDelegate {
/**
+ * @return Whether the Panel is in fullscreen size.
+ */
+ boolean isFullscreenSizePanel();
+
+ /**
* @return Whether the Panel is showing.
*/
boolean isShowing();
@@ -22,6 +27,26 @@ public interface ContextualSearchPanelDelegate {
boolean isPeeking();
/**
+ * @return The width of the Contextual Search Panel in pixels.
+ */
+ int getMaximumWidthPx();
+
+ /**
+ * @return The height of the Contextual Search Panel in pixels.
+ */
+ int getMaximumHeightPx();
+
+ /**
+ * @return The width of the Search Content View in pixels.
+ */
+ int getSearchContentViewWidthPx();
+
+ /**
+ * @return The height of the Search Content View in pixels.
+ */
+ int getSearchContentViewHeightPx();
+
+ /**
* Maximizes the Contextual Search Panel, then promotes it to a regular Tab.
* @param reason The {@code StateChangeReason} behind the maximization and promotion to tab.
*/

Powered by Google App Engine
This is Rietveld 408576698