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

Issue 1379183003: [ContextualSearch] Adds long press promo for Contextual Search. (Closed)

Created:
5 years, 2 months ago by pedro (no code reviews)
Modified:
5 years, 2 months ago
CC:
chromium-reviews, Donn Denman, mdjones, Theresa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ContextualSearch] Adds long press promo for Contextual Search. - Long Press Promo with custom appearance animation. - Individual Promo Control based on new ContextualSearchInflater class. - Initial refactoring to allow custom Controls to be rendered without requiring changes to the Panel implementation. - Fixes division by zero bug in Panel progress calculation. - Removes unnecessary Layer properties. - Removes duplicate code in ContextualSearchManager. BUG=511475 Committed: https://crrev.com/4dca47ac6200ace8661a51d4638f98a085d3cde8 Cr-Commit-Position: refs/heads/master@{#352404}

Patch Set 1 #

Total comments: 27

Patch Set 2 : Addressing Theresa's comments #

Patch Set 3 : Addressing David's comments and tweaking policy #

Total comments: 20

Patch Set 4 : Forgot to upload a few changes suggested by David & fixing one FindBugs bug #

Patch Set 5 : Addressing Aurimas's comments. #

Total comments: 18

Patch Set 6 : Removing expiration date & add test for peek promo #

Patch Set 7 : Rebase & fix test #

Patch Set 8 : fix test #

Patch Set 9 : fix test #

Patch Set 10 : addressing comments & fixing layout #

Patch Set 11 : Tweak tests #

Patch Set 12 : Tweak test #

Patch Set 13 : Sync & rebase #

Patch Set 14 : Fix FindBugs bug #

Total comments: 17

Patch Set 15 : Addressing more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+843 lines, -115 lines) Patch
A chrome/android/java/res/drawable-hdpi/contextual_search_promo_ripple.9.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/contextual_search_promo_ripple.9.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/contextual_search_promo_ripple.9.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/contextual_search_promo_ripple.9.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/contextual_search_promo_ripple.9.png View Binary file 0 comments Download
A + chrome/android/java/res/drawable/contextual_search_peek_promo_new_background.xml View 1 2 3 4 1 chunk +9 lines, -5 lines 0 comments Download
A chrome/android/java/res/layout/contextual_search_peek_promo_text_view.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchInflater.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 2 3 4 5 6 7 8 9 9 chunks +111 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelAnimation.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java View 1 2 3 4 5 6 7 8 9 19 chunks +38 lines, -31 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +20 lines, -3 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java View 1 2 3 4 5 6 7 8 9 1 chunk +254 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java View 1 2 3 4 5 6 7 8 9 10 chunks +27 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +49 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 2 chunks +10 lines, -30 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchPolicy.java View 1 2 3 4 5 6 7 8 9 2 chunks +39 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromePreferenceManager.java View 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchEventFilterTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.h View 4 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 1 2 3 4 5 6 7 8 9 19 chunks +144 lines, -11 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h View 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc View 6 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
pedro (no code reviews)
dtrainor@ and aurimas@ please take a look at this change. I still need to add ...
5 years, 2 months ago (2015-10-02 10:33:40 UTC) #2
pedro (no code reviews)
https://codereview.chromium.org/1379183003/diff/1/chrome/browser/android/compositor/layer/contextual_search_layer.cc File chrome/browser/android/compositor/layer/contextual_search_layer.cc (right): https://codereview.chromium.org/1379183003/diff/1/chrome/browser/android/compositor/layer/contextual_search_layer.cc#newcode153 chrome/browser/android/compositor/layer/contextual_search_layer.cc:153: color_utils::AlphaBlend(kPeekPromoRippleBackgroundColor, Question to reviewers: should I be concerned about ...
5 years, 2 months ago (2015-10-02 10:35:53 UTC) #3
Theresa
https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode237 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:237: new Handler().postDelayed(new Runnable() { What does using postDelayed achieve ...
5 years, 2 months ago (2015-10-02 17:34:45 UTC) #5
mdjones
https://codereview.chromium.org/1379183003/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 (left): https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#oldcode1095 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:1095: public void onContentViewVisibilityChanged(boolean isVisible) { On 2015/10/02 17:34:45, Theresa ...
5 years, 2 months ago (2015-10-02 19:53:15 UTC) #7
pedro (no code reviews)
PTAL https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode237 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:237: new Handler().postDelayed(new Runnable() { On 2015/10/02 17:34:45, Theresa ...
5 years, 2 months ago (2015-10-02 20:29:09 UTC) #8
David Trainor- moved to gerrit
I'm fine with this. lgtm. But wait for other reviewers! https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1379183003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode237 ...
5 years, 2 months ago (2015-10-02 20:49:20 UTC) #9
Theresa
lgtm too - thank you for answering all my questions
5 years, 2 months ago (2015-10-02 20:59:59 UTC) #10
pedro (no code reviews)
Aurimas, could you please a look at this change? Donn, I made changes in the ...
5 years, 2 months ago (2015-10-02 22:15:57 UTC) #11
aurimas (slooooooooow)
I really think we should separate the JNI call for all the promo panel visibility ...
5 years, 2 months ago (2015-10-02 22:58:37 UTC) #12
pedro (no code reviews)
I agree that there is room for improvement but I don't think things are as ...
5 years, 2 months ago (2015-10-03 00:11:27 UTC) #13
aurimas (slooooooooow)
I don't see any tests for the feature. Can you add at least a basic ...
5 years, 2 months ago (2015-10-03 00:54:03 UTC) #14
aurimas (slooooooooow)
5 years, 2 months ago (2015-10-03 00:54:15 UTC) #15
pedro (no code reviews)
Please take another look. I've addressed comments and added a test. I've also re-examined the ...
5 years, 2 months ago (2015-10-05 02:13:21 UTC) #16
aurimas (slooooooooow)
This patch is looking good now -> LGTM given that there will be 2 follow-ups: ...
5 years, 2 months ago (2015-10-05 03:08:57 UTC) #17
Donn Denman
LGTM, just a few nits (sorry to be annoying)! https://codereview.chromium.org/1379183003/diff/250001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java (right): https://codereview.chromium.org/1379183003/diff/250001/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java#newcode238 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java:238: ...
5 years, 2 months ago (2015-10-05 17:16:31 UTC) #19
pedro (no code reviews)
> This patch is looking good now -> LGTM given that there will be 2 ...
5 years, 2 months ago (2015-10-05 19:07:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379183003/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379183003/270001
5 years, 2 months ago (2015-10-05 19:10:09 UTC) #23
aurimas (slooooooooow)
https://codereview.chromium.org/1379183003/diff/250001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1379183003/diff/250001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode872 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:872: private ContextualSearchPeekPromoControl mPeekPromoControl; On 2015/10/05 at 19:07:12, pedrosimonetti wrote: ...
5 years, 2 months ago (2015-10-05 19:56:45 UTC) #24
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 2 months ago (2015-10-05 20:18:31 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-05 20:20:30 UTC) #26
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/4dca47ac6200ace8661a51d4638f98a085d3cde8
Cr-Commit-Position: refs/heads/master@{#352404}

Powered by Google App Engine
This is Rietveld 408576698