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

Issue 2801153003: [Contextual Search] Add a handle to the bar when Chrome Home is enabled (Closed)

Created:
3 years, 8 months ago by Theresa
Modified:
3 years, 8 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, mdjones+watch_chromium.org, donnd+watch_chromium.org, twellington+watch_chromium.org, agrieve+watch_chromium.org, danakj+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Contextual Search] Add a handle to the bar when Chrome Home is enabled Also increases the height of the bar to match the toolbar. BUG=706256 Review-Url: https://codereview.chromium.org/2801153003 Cr-Commit-Position: refs/heads/master@{#463673} Committed: https://chromium.googlesource.com/chromium/src/+/3a1c3c6a3eca1dd32503f059458e3d9709c37e7a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Address mdjones@ comments #

Total comments: 2

Patch Set 4 : Move handle bitmap generate to BitmapUtils #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Use XML drawable instead of dynamic resource #

Total comments: 2

Patch Set 7 : Update comment and method name #

Patch Set 8 : Revert changes to OverlayPanelBase#initializeUiState() #

Patch Set 9 : Revert changes to OverlayPanelBase#initializeUiState() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -137 lines) Patch
A chrome/android/java/res/drawable/toolbar_handle_dark.xml View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/android/java/res/drawable/toolbar_handle_light.xml View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java View 1 2 3 4 5 6 7 8 3 chunks +59 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java View 1 2 3 4 5 6 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java View 1 2 3 4 5 6 chunks +9 lines, -41 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 10 chunks +24 lines, -38 lines 0 comments Download
M chrome/browser/android/compositor/layer/overlay_panel_layer.h View 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/layer/overlay_panel_layer.cc View 1 2 3 4 5 9 chunks +58 lines, -15 lines 0 comments Download
M chrome/browser/android/compositor/layer/reader_mode_layer.cc View 1 chunk +4 lines, -16 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.cc View 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
Theresa
ptal
3 years, 8 months ago (2017-04-06 20:46:55 UTC) #2
mdjones
https://codereview.chromium.org/2801153003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2801153003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode296 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:296: if (!FeatureUtilities.isChromeHomeEnabled()) return; Does contextual search work on CCTs ...
3 years, 8 months ago (2017-04-07 15:47:13 UTC) #7
Theresa
https://codereview.chromium.org/2801153003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2801153003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode296 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:296: if (!FeatureUtilities.isChromeHomeEnabled()) return; On 2017/04/07 15:47:13, mdjones wrote: > ...
3 years, 8 months ago (2017-04-07 16:26:43 UTC) #9
mdjones
https://codereview.chromium.org/2801153003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2801153003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode298 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:298: (BottomToolbarPhone) mActivity.getToolbarManager().getToolbar()); Do you think it's worth making generateHandleBitmap ...
3 years, 8 months ago (2017-04-07 16:50:44 UTC) #11
Theresa
https://codereview.chromium.org/2801153003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2801153003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode298 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:298: (BottomToolbarPhone) mActivity.getToolbarManager().getToolbar()); On 2017/04/07 16:50:43, mdjones wrote: > Do ...
3 years, 8 months ago (2017-04-07 17:44:18 UTC) #15
mdjones
lgtm, thanks!
3 years, 8 months ago (2017-04-07 17:58:30 UTC) #17
Theresa
+dtrainor@ for OWNERS review
3 years, 8 months ago (2017-04-07 18:00:07 UTC) #19
David Trainor- moved to gerrit
https://codereview.chromium.org/2801153003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java (right): https://codereview.chromium.org/2801153003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java#newcode1162 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java:1162: BitmapDynamicResource handleResource = new BitmapDynamicResource(mBarHandleResourceId); It would be nice ...
3 years, 8 months ago (2017-04-10 18:57:27 UTC) #22
Theresa
ptal Matt, will you please do another pass? I changed the handle to an XML ...
3 years, 8 months ago (2017-04-10 20:59:33 UTC) #25
David Trainor- moved to gerrit
One last suggestion/nit but lgtm. https://codereview.chromium.org/2801153003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java (right): https://codereview.chromium.org/2801153003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java#newcode1162 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java:1162: public int getBarHandleDynamicResourceId() { ...
3 years, 8 months ago (2017-04-10 21:06:44 UTC) #26
mdjones
lgtm, thanks for converting to xml!
3 years, 8 months ago (2017-04-10 21:06:57 UTC) #27
Theresa
https://codereview.chromium.org/2801153003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java (right): https://codereview.chromium.org/2801153003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java#newcode1162 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelBase.java:1162: public int getBarHandleDynamicResourceId() { On 2017/04/10 21:06:44, David Trainor-ping ...
3 years, 8 months ago (2017-04-10 21:28:07 UTC) #30
Donn Denman
Theresa, QQ: did you test with huge fonts? I seem to remember some edge cases ...
3 years, 8 months ago (2017-04-10 21:28:29 UTC) #32
Theresa
On 2017/04/10 21:28:29, Donn Denman wrote: > Theresa, QQ: did you test with huge fonts? ...
3 years, 8 months ago (2017-04-10 21:37:16 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2801153003/160001
3 years, 8 months ago (2017-04-11 17:12:38 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 17:40:50 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3a1c3c6a3eca1dd32503f059458e...

Powered by Google App Engine
This is Rietveld 408576698