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

Issue 2814593003: 🔍 Continue working on the search widget prototype (Closed)

Created:
3 years, 8 months ago by gone
Modified:
3 years, 8 months ago
Reviewers:
Ted C, Yusuf
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

🔍 Continue working on the search widget prototype General cleanup: * Further encapsulate the SearchActivityLocationBarLayout. * Enable the search widget on Canary so that we can get _some_ testing. Microphone fixes: * Switch to singleTask so that the microphone works on JB and KK: Android changed semantics for startActivityForResult for singleInstance tasks somewhere after that. We were already properly handling singleTask behavior because of the onNewIntent call anyway. * Hook into Activity#onRequestPermissionsResult so that we can properly listen for permissions changes and trigger a voice query afterward. * If we're not confident in the search query, the result is put into the text box. Hitting enter previously sent you to the first link in the suggestions instead of properly regenerating them. This was fixed by avoiding trying to refocus and reset the query when the microphone result came in. Transition fixes: * Stop calling finish() from onStop(). This messed up when the user went to recents and then re-entered the SearchActivity immediately. * Clean up some more of the activity creation, including getting rid of an unnecessary style. This fixes up some of the background color transitions slightly. BUG=708844 Review-Url: https://codereview.chromium.org/2814593003 Cr-Commit-Position: refs/heads/master@{#463715} Committed: https://chromium.googlesource.com/chromium/src/+/24f29cd501c22986c8b80fbf4283c734be81c2b9

Patch Set 1 #

Patch Set 2 : Get microphone working on KK #

Patch Set 3 : Microphone permission fix #

Patch Set 4 : Fix non-confident search queries #

Total comments: 2

Patch Set 5 : 🔍 Continue cleaning up the search widget. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -115 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/res/layout/search_activity.xml View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java View 1 2 3 4 13 chunks +35 lines, -97 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java View 1 2 3 4 3 chunks +49 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
gone
3 years, 8 months ago (2017-04-11 01:05:05 UTC) #2
gone
+ted for permissions additions
3 years, 8 months ago (2017-04-11 06:00:19 UTC) #7
Yusuf
lgtm
3 years, 8 months ago (2017-04-11 17:45:21 UTC) #14
Ted C
lgtm https://codereview.chromium.org/2814593003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java File chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java (right): https://codereview.chromium.org/2814593003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java#newcode79 chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivity.java:79: // TODO(dfalcantara): This is from ChromeWindow, but there ...
3 years, 8 months ago (2017-04-11 17:57:01 UTC) #15
gone
Fixed the TODO. Also adjusted one of the margins a bit, but I don't think ...
3 years, 8 months ago (2017-04-11 18:16:44 UTC) #16
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/2814593003/80001
3 years, 8 months ago (2017-04-11 18:18:59 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 19:16:32 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/24f29cd501c22986c8b80fbf4283...

Powered by Google App Engine
This is Rietveld 408576698