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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java

Issue 2801153003: [Contextual Search] Add a handle to the bar when Chrome Home is enabled (Closed)
Patch Set: Revert changes to OverlayPanelBase#initializeUiState() Created 3 years, 8 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/scene_layer/ContextualSearchSceneLayer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java
index cb26d3be33935a93ff876f95667cb073c3282be2..7f9e1979c18aaa84d4b1c45393274c03aeecb524 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java
@@ -127,6 +127,10 @@ public class ContextualSearchSceneLayer extends SceneOverlayLayer {
float touchHighlightXOffset = searchBarControl.getTouchHighlightXOffsetPx();
float touchHighlightWidth = searchBarControl.getTouchHighlightWidthPx();
+ int barHandleResId = panel.getBarHandleResourceId();
+ float barHandleOffsetY = panel.getBarHandleOffsetY();
+ float barPaddingBottom = panel.getBarPaddingBottom();
+
WebContents panelWebContents = panel.getContentViewCore() != null
? panel.getContentViewCore().getWebContents() : null;
@@ -152,7 +156,8 @@ public class ContextualSearchSceneLayer extends SceneOverlayLayer {
progressBarHeight * mDpToPx, progressBarOpacity, progressBarCompletion,
dividerLineVisibilityPercentage, dividerLineWidth, dividerLineHeight,
dividerLineColor, dividerLineXOffset, touchHighlightVisible, touchHighlightXOffset,
- touchHighlightWidth, Profile.getLastUsedProfile());
+ touchHighlightWidth, barHandleResId, barHandleOffsetY, barPaddingBottom,
+ Profile.getLastUsedProfile());
}
@CalledByNative
@@ -223,5 +228,6 @@ public class ContextualSearchSceneLayer extends SceneOverlayLayer {
float progressBarHeight, float progressBarOpacity, int progressBarCompletion,
float dividerLineVisibilityPercentage, float dividerLineWidth, float dividerLineHeight,
int dividerLineColor, float dividerLineXOffset, boolean touchHighlightVisible,
- float touchHighlightXOffset, float toucHighlightWidth, Profile profile);
+ float touchHighlightXOffset, float toucHighlightWidth, int barHandleResId,
+ float barHandleOffsetY, float barPaddingBottom, Profile profile);
}

Powered by Google App Engine
This is Rietveld 408576698