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

Issue 11889003: Fixing ESC in instant-extended. (Closed)

Created:
7 years, 11 months ago by beaudoin
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Mathieu, sreeram, samarth, Jered
Visibility:
Public.

Description

Fixing ESC in instant-extended. This ensures Chrome sends an onkeypress VKEY_ESCAPE to the instant extended page when the user presses ESC after having arrowed down in the suggestion list. This patch also ensures that no Update is fired when the user presses ESC. It also revisit the fix for crbug.com/172382 . The JS still needs to reset the selection to the default suggestion this is tracked in b/8172172 . BUG=164449 TEST=Enable instant extended, type a search query (ie "flowe") arrow down in the suggestions, hit ESC. The popup should close and "flowe" should remain in the omnibox. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182744

Patch Set 1 : #

Patch Set 2 : Expects JS call to onchange to reset selection to 1st item. #

Patch Set 3 : Reworked to send ESC down to JS, added test. #

Total comments: 4

Patch Set 4 : Rebased. #

Patch Set 5 : Minor correction to comments. #

Total comments: 12

Patch Set 6 : IPC now updates the query, answered PK's comments. #

Patch Set 7 : Reverted back to asvitkine's fix. REALLY answered PK's comments. :) #

Total comments: 10

Patch Set 8 : Answered Sreeram's comment, fixed Jeremy's problem and updated tests. #

Total comments: 24

Patch Set 9 : Answered Sreeram's comments. #

Patch Set 10 : Fixed Jeremy's issue with blue text not coming back #

Patch Set 11 : Ensure the IC.last_match_was_search_ is correctly restored. #

Total comments: 3

Patch Set 12 : Added issue number to TODO. #

Total comments: 1

Patch Set 13 : Rebased and fixed final comment. #

Patch Set 14 : Disabled checks in tests that no longer work following Sreeram's refactoring. #

Patch Set 15 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -23 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +58 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_page.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_page.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +23 lines, -4 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/data/instant_extended.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
beaudoin
Even though it looks like a revert of https://codereview.chromium.org/11644050 I've verified that this not reintroduce ...
7 years, 11 months ago (2013-01-14 02:39:08 UTC) #1
beaudoin
+asvitkine because I changed your fix of crbug.com/172382 by ensuring OmniboxEditModel::OnChanged is never called when ...
7 years, 10 months ago (2013-02-07 22:34:59 UTC) #2
beaudoin
Reviewers: asvitkine forgot you last time around (pls read previous message) Owners: sreeram for c/b/instant/* ...
7 years, 10 months ago (2013-02-11 15:16:54 UTC) #3
Alexei Svitkine (slow)
LGTM for cocoa/ please add a TEST= line to the CL description
7 years, 10 months ago (2013-02-11 17:48:37 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (left): https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc#oldcode1244 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1244: return false; On my CL that added this block, ...
7 years, 10 months ago (2013-02-11 17:54:43 UTC) #5
beaudoin
On 2013/02/11 17:54:43, Alexei Svitkine wrote: > https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc > File chrome/browser/ui/omnibox/omnibox_edit_model.cc (left): > > https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc#oldcode1244 ...
7 years, 10 months ago (2013-02-11 18:00:53 UTC) #6
Peter Kasting
I don't understand how instant works well enough to review this :( https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc ...
7 years, 10 months ago (2013-02-11 19:54:54 UTC) #7
jeremycho
The value of chrome.searchBox.value doesn't seem to get updated on ESC. Expected? E.g. if you ...
7 years, 10 months ago (2013-02-11 22:29:11 UTC) #8
beaudoin
@jeremycho Latest version no longer relies on the JS setting the value (the IPC sets ...
7 years, 10 months ago (2013-02-11 23:38:21 UTC) #9
Peter Kasting
https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11889003/diff/12004/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode223 chrome/browser/ui/omnibox/omnibox_edit_model.cc:223: save_original_selection, false); On 2013/02/11 19:54:54, Peter Kasting wrote: > ...
7 years, 10 months ago (2013-02-11 23:53:08 UTC) #10
beaudoin
Sorry Peter, comment update fell through the cracks as I switched it from Mac to ...
7 years, 10 months ago (2013-02-12 00:24:37 UTC) #11
jeremycho
Thanks for making the value change. However, I'm noticing an issue with setAutocompleteText. When I ...
7 years, 10 months ago (2013-02-12 00:49:10 UTC) #12
jeremycho
Another issue I'm seeing - If I arrow down to a query suggestion X, hit ...
7 years, 10 months ago (2013-02-12 01:33:34 UTC) #13
Peter Kasting
OWNERS LGTM, but that's basically a rubber-stamp contingent on instant-knowledgeable people OKing this and it ...
7 years, 10 months ago (2013-02-12 01:36:18 UTC) #14
Evan Stade
rubber stamp lgtm for gtk
7 years, 10 months ago (2013-02-12 03:27:01 UTC) #15
sreeram
https://codereview.chromium.org/11889003/diff/12005/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/11889003/diff/12005/chrome/browser/instant/instant_controller.h#newcode114 chrome/browser/instant/instant_controller.h:114: // Called when the user has arrowed into the ...
7 years, 10 months ago (2013-02-12 18:12:29 UTC) #16
beaudoin
Sreeram: PTAL. Jeremy: I fixed the problem where committing the result after hitting ESC would ...
7 years, 10 months ago (2013-02-12 20:27:30 UTC) #17
jeremycho
On 2013/02/12 20:27:30, beaudoin wrote: > Jeremy: I fixed the problem where committing the result ...
7 years, 10 months ago (2013-02-12 20:47:20 UTC) #18
sreeram
https://codereview.chromium.org/11889003/diff/15035/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11889003/diff/15035/chrome/browser/instant/instant_controller.cc#newcode520 chrome/browser/instant/instant_controller.cc:520: last_match_was_search_ = !user_text.empty(); This isn't totally correct. Consider: I ...
7 years, 10 months ago (2013-02-12 20:52:59 UTC) #19
sreeram
https://codereview.chromium.org/11889003/diff/15035/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11889003/diff/15035/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode1195 chrome/browser/ui/omnibox/omnibox_edit_model.cc:1195: view_->OnTemporaryTextMaybeChanged(user_text_, false, false); You need to set this to ...
7 years, 10 months ago (2013-02-12 20:56:51 UTC) #20
beaudoin
Jeremy: I was able to repro but I suspect the problem is related to the ...
7 years, 10 months ago (2013-02-12 21:34:41 UTC) #21
sreeram
On Tue, Feb 12, 2013 at 1:34 PM, <beaudoin@chromium.org> wrote: > Jeremy: I was able ...
7 years, 10 months ago (2013-02-12 21:52:03 UTC) #22
beaudoin
I think I was able to solve Jeremy's issue by using user_text_ + inline_autocomplete_text_ in ...
7 years, 10 months ago (2013-02-12 22:20:14 UTC) #23
jeremycho
On 2013/02/12 22:20:14, beaudoin wrote: > I think I was able to solve Jeremy's issue ...
7 years, 10 months ago (2013-02-12 22:24:16 UTC) #24
beaudoin
Fixed an issue where typing "face|book.com", arrowing down, hitting ESC, then hitting Enter to commit ...
7 years, 10 months ago (2013-02-12 22:54:48 UTC) #25
beaudoin
On 2013/02/12 22:54:48, beaudoin wrote: > Fixed an issue where typing "face|book.com", arrowing down, hitting ...
7 years, 10 months ago (2013-02-13 20:11:32 UTC) #26
palmer
lgtm https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc#newcode235 chrome/renderer/searchbox/searchbox.cc:235: // TODO(sreeram): The state reset below are somewhat ...
7 years, 10 months ago (2013-02-13 21:27:54 UTC) #27
beaudoin
https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc#newcode235 chrome/renderer/searchbox/searchbox.cc:235: // TODO(sreeram): The state reset below are somewhat wrong. ...
7 years, 10 months ago (2013-02-13 21:32:38 UTC) #28
sreeram
lgtm https://codereview.chromium.org/11889003/diff/32001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (left): https://codereview.chromium.org/11889003/diff/32001/chrome/browser/instant/instant_controller.cc#oldcode525 chrome/browser/instant/instant_controller.cc:525: Nit: Don't remove this blank line.
7 years, 10 months ago (2013-02-14 17:56:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/11889003/34002
7 years, 10 months ago (2013-02-14 21:16:30 UTC) #30
Peter Kasting
https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/11889003/diff/28002/chrome/renderer/searchbox/searchbox.cc#newcode235 chrome/renderer/searchbox/searchbox.cc:235: // TODO(sreeram): The state reset below are somewhat wrong. ...
7 years, 10 months ago (2013-02-14 21:17:49 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/11889003/34002
7 years, 10 months ago (2013-02-14 22:13:03 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=84678
7 years, 10 months ago (2013-02-14 23:46:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/11889003/36008
7 years, 10 months ago (2013-02-15 14:43:33 UTC) #34
commit-bot: I haz the power
Failed to apply patch for chrome/browser/instant/instant_page.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-15 14:43:41 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/11889003/47001
7 years, 10 months ago (2013-02-15 14:56:12 UTC) #36
commit-bot: I haz the power
7 years, 10 months ago (2013-02-15 17:35:58 UTC) #37
Message was sent while issue was closed.
Change committed as 182744

Powered by Google App Engine
This is Rietveld 408576698