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

Issue 2322793002: [Contextual Search] Fetch and display thumbnails returned in resolution response (Closed)

Created:
4 years, 3 months ago by Theresa
Modified:
4 years, 3 months ago
Reviewers:
mdjones, Donn Denman, Ted C
CC:
chromium-reviews, mdjones+watch_chromium.org, donnd+watch_chromium.org, twellington+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Contextual Search] Fetch and display thumbnails returned in resolution response The search resolution response will potentially include thumbnail urls. This patch adds support for fetching the thumbnail, using BitmapFetcher, and displaying it whre the 'G' logo is currently displayed. Also cleans up unused an unused field trial param for disabling sprite animations. Note that the work to parse the JSON and extract a thumbnail url has not been completed yet. This CL adds the plumbing and UI changes necessary to display once the parsing is implemented. BUG=644932 Committed: https://crrev.com/c56e3d6b9b0d2559a0f33821b20ea75c8a824963 Cr-Commit-Position: refs/heads/master@{#417613}

Patch Set 1 #

Patch Set 2 : [Contextual Search] Fetch and display thumbnails returned in resolution response #

Patch Set 3 : Fix unit tests #

Total comments: 19

Patch Set 4 : Changes from review feedback #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : std::unique_ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -85 lines) Patch
M chrome/android/java/res/values/dimens.xml View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchIconSpriteControl.java View 4 chunks +4 lines, -17 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 2 3 4 chunks +77 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java View 7 chunks +25 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java View 5 chunks +11 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFakeServer.java View 1 7 chunks +21 lines, -12 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 5 chunks +9 lines, -6 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchTapEventTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 1 2 3 5 chunks +104 lines, -10 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h View 1 2 3 4 5 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc View 1 2 3 4 5 5 chunks +49 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate.cc View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_delegate_unittest.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_manager.cc View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/resolved_search_term.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/android/contextualsearch/resolved_search_term.cc View 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 42 (25 generated)
Theresa
mdjones@ - ptal at cc layer things in contextual_search_layer.cc (let me know if I should ...
4 years, 3 months ago (2016-09-07 23:57:10 UTC) #7
mdjones
https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc File chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc (right): https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc#newcode208 chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc:208: chrome::BitmapFetcher* fetcher = new chrome::BitmapFetcher(*gurl, this); Does BitmapFetcher delete ...
4 years, 3 months ago (2016-09-08 17:14:21 UTC) #14
Donn Denman
My only real question is whether we really want to crop as well as scale. ...
4 years, 3 months ago (2016-09-08 18:13:40 UTC) #15
Donn Denman
I didn't really look at the details of the scale-download logic, hopefully it can be ...
4 years, 3 months ago (2016-09-08 18:21:44 UTC) #16
Theresa
https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc File chrome/browser/android/compositor/layer/contextual_search_layer.cc (right): https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc#newcode41 chrome/browser/android/compositor/layer/contextual_search_layer.cc:41: scoped_refptr<cc::Layer> ContextualSearchLayer::GetIconLayer() { On 2016/09/08 18:13:39, Donn Denman wrote: ...
4 years, 3 months ago (2016-09-08 20:18:23 UTC) #17
Donn Denman
LGTM! https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc File chrome/browser/android/compositor/layer/contextual_search_layer.cc (right): https://codereview.chromium.org/2322793002/diff/40001/chrome/browser/android/compositor/layer/contextual_search_layer.cc#newcode41 chrome/browser/android/compositor/layer/contextual_search_layer.cc:41: scoped_refptr<cc::Layer> ContextualSearchLayer::GetIconLayer() { On 2016/09/08 20:18:22, Theresa Wellington ...
4 years, 3 months ago (2016-09-08 20:41:52 UTC) #22
mdjones
https://codereview.chromium.org/2322793002/diff/80001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc File chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc (right): https://codereview.chromium.org/2322793002/diff/80001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc#newcode226 chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc:226: fetcher_->~BitmapFetcher(); I think this would be "delete fetcher_;". However, ...
4 years, 3 months ago (2016-09-08 21:31:29 UTC) #23
Theresa
https://codereview.chromium.org/2322793002/diff/80001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc File chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc (right): https://codereview.chromium.org/2322793002/diff/80001/chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc#newcode226 chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc:226: fetcher_->~BitmapFetcher(); On 2016/09/08 21:31:28, mdjones wrote: > I think ...
4 years, 3 months ago (2016-09-08 22:28:52 UTC) #25
chromium-reviews
BTW std::unique_ptr used to be scoped_ptr<> but now we switched to the std. Very handy. ...
4 years, 3 months ago (2016-09-08 22:43:54 UTC) #27
mdjones
lgtm
4 years, 3 months ago (2016-09-08 23:10:58 UTC) #28
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/2322793002/100001
4 years, 3 months ago (2016-09-08 23:16:05 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/256050)
4 years, 3 months ago (2016-09-08 23:22:56 UTC) #34
Theresa
+tedchoc for dimens.xml OWNERS
4 years, 3 months ago (2016-09-08 23:24:05 UTC) #36
Ted C
dimens.xml lgtm
4 years, 3 months ago (2016-09-09 17:07:31 UTC) #37
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/2322793002/100001
4 years, 3 months ago (2016-09-09 17:18:43 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-09 17:24:08 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 17:26:13 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c56e3d6b9b0d2559a0f33821b20ea75c8a824963
Cr-Commit-Position: refs/heads/master@{#417613}

Powered by Google App Engine
This is Rietveld 408576698