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

Issue 1237913002: [Contextual Search] Adds basic support for narrow Search Panel. (Closed)

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

Description

[Contextual Search] Adds basic support for narrow Search Panel. This CL adds infrastructure support for custom sized ContenViews, via ContentViewClient. This CL also adds basically capability for rendering narrow version of the Search Panel, which will be used on devices with wide screens. Moreover, this CL also adjusts our Event handling so MotionEvents are properly offset to the new ContentView location, and adjusts the code that checks whether a particular coordinate is inside the Search Panel or one of its components. Finally, this CL also fixes a couple of problems where the very bottom of the SERP wasn't visible, and fixed the promotion to a Tab to be seamless even when the SERP is scrolled. BUG=510198 BUG=510200 BUG=510205 BUG=510206 Committed: https://crrev.com/4e30e1a1406bede7bfc0197a0fb3b2d056287e5d Cr-Commit-Position: refs/heads/master@{#338973}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing Donn and David's comments #

Patch Set 3 : Sync & rebase #

Patch Set 4 : Sync & rebase #

Patch Set 5 : Adding Finch flag & fixing test #

Patch Set 6 : Fixing another bug #

Patch Set 7 : Sync & rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -42 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 1 2 3 4 5 6 4 chunks +34 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 4 chunks +66 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java View 1 2 3 4 5 13 chunks +136 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java View 1 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/eventfilter/ContextualSearchEventFilter.java View 1 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/ContextualSearchSceneLayer.java View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchFieldTrial.java View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 4 chunks +35 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchStaticEventFilter.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchEventFilterTest.java View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/layer/contextual_search_layer.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentView.java View 1 chunk +19 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 3 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
pedro (no code reviews)
dtrainor@chromium.org: As we discussed offline, please take a look at this change. aurimas@ and donnd@: ...
5 years, 5 months ago (2015-07-14 21:45:00 UTC) #2
donnd
LGTM from my perspective! https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java (right): https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java#newcode968 chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java:968: contentViewCore.onPhysicalBackingSizeChanged(width, height); Should this be ...
5 years, 5 months ago (2015-07-14 22:24:13 UTC) #4
David Trainor- moved to gerrit
lgtm with nits. https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java (right): https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java#newcode968 chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java:968: contentViewCore.onPhysicalBackingSizeChanged(width, height); On 2015/07/14 22:24:12, Donn ...
5 years, 5 months ago (2015-07-14 23:12:01 UTC) #5
pedro (no code reviews)
Thanks guys, please take another look. https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java (right): https://codereview.chromium.org/1237913002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java#newcode968 chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java:968: contentViewCore.onPhysicalBackingSizeChanged(width, height); On ...
5 years, 5 months ago (2015-07-15 00:19:17 UTC) #6
donnd
I'm not seeing the new patch set, but lgtm based on your replies.
5 years, 5 months ago (2015-07-15 00:25:39 UTC) #7
pedro (no code reviews)
Oops... forgot to upload the patch.
5 years, 5 months ago (2015-07-15 00:36:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237913002/60001
5 years, 5 months ago (2015-07-15 17:57:10 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/44804)
5 years, 5 months ago (2015-07-15 22:08:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237913002/80001
5 years, 5 months ago (2015-07-16 00:23:12 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/92143) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-16 00:29:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237913002/100001
5 years, 5 months ago (2015-07-16 00:40:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/17093)
5 years, 5 months ago (2015-07-16 00:48:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237913002/100001
5 years, 5 months ago (2015-07-16 01:02:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/92167) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-16 01:07:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1237913002/120001
5 years, 5 months ago (2015-07-16 01:35:00 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-16 02:34:00 UTC) #31
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 02:34:57 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4e30e1a1406bede7bfc0197a0fb3b2d056287e5d
Cr-Commit-Position: refs/heads/master@{#338973}

Powered by Google App Engine
This is Rietveld 408576698