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

Issue 14562006: Handle Esc key press event in Local NTP. (Closed)

Created:
7 years, 7 months ago by kmadhusu
Modified:
7 years, 7 months ago
CC:
chromium-reviews, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, gideonwald, dominich, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

Handle Esc key press event in Local NTP. If the user press 'Esc' key before 3 seconds timeout, we now send an onkeypress(ESC) to the page. Local NTP handles the key press event and reloads the page contents. BUG=231744, 238065 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198598

Patch Set 1 : '' #

Total comments: 8

Patch Set 2 : Addressed review comments #

Total comments: 2

Patch Set 3 : Updated description and added a TODO to handle !full_text.empty case. #

Total comments: 8

Patch Set 4 : Addressed review comments #

Total comments: 4

Patch Set 5 : Rebase #

Total comments: 7

Patch Set 6 : Fix test #

Total comments: 2

Patch Set 7 : Added comment #

Patch Set 8 : Rebase #

Patch Set 9 : Reverted local_ntp onsubmit handler changes #

Patch Set 10 : git cl upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -23 lines) Patch
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 3 4 5 6 7 8 6 chunks +48 lines, -8 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/test/data/instant_extended.html View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
kmadhusu
PTAL. Thanks.
7 years, 7 months ago (2013-05-04 00:46:04 UTC) #1
samarth
https://codereview.chromium.org/14562006/diff/10/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/10/chrome/browser/resources/local_ntp/local_ntp.js#newcode1331 chrome/browser/resources/local_ntp/local_ntp.js:1331: hideActiveSuggestions(); There are two cases here too :) 1) ...
7 years, 7 months ago (2013-05-04 01:04:16 UTC) #2
kmadhusu
Addressed review comments. PTAL. Thanks. https://codereview.chromium.org/14562006/diff/10/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/10/chrome/browser/resources/local_ntp/local_ntp.js#newcode1331 chrome/browser/resources/local_ntp/local_ntp.js:1331: hideActiveSuggestions(); On 2013/05/04 01:04:17, ...
7 years, 7 months ago (2013-05-04 03:34:38 UTC) #3
samarth
Working great! Two requests: (1) There is already a test for this but it's currently ...
7 years, 7 months ago (2013-05-04 16:37:35 UTC) #4
jeremycho
Demo is looking good, except for one corner case - If I start on the ...
7 years, 7 months ago (2013-05-04 23:07:06 UTC) #5
jeremycho
Sorry, by 'enter' I mean 'esc'. On 2013/05/04 23:07:06, jeremycho wrote: > Demo is looking ...
7 years, 7 months ago (2013-05-05 19:51:11 UTC) #6
samarth
+palmer for new IPC Sorry for the last-minute review but hopefully this one should be ...
7 years, 7 months ago (2013-05-05 22:32:52 UTC) #7
kmadhusu
Addressed review comments. Enabled the interactive ui test. PTAL. Thanks. https://codereview.chromium.org/14562006/diff/12001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/14562006/diff/12001/chrome/browser/ui/search/instant_controller.cc#newcode361 ...
7 years, 7 months ago (2013-05-05 22:44:54 UTC) #8
jeremycho
Looking better! One more issue - If I start from the NTP, type a query, ...
7 years, 7 months ago (2013-05-05 22:59:09 UTC) #9
sreeram
On 2013/05/05 22:59:09, jeremycho wrote: > If I start from the NTP, type a query, ...
7 years, 7 months ago (2013-05-05 23:03:50 UTC) #10
kmadhusu
On 2013/05/05 23:03:50, sreeram wrote: > On 2013/05/05 22:59:09, jeremycho wrote: > > If I ...
7 years, 7 months ago (2013-05-05 23:40:15 UTC) #11
samarth
Do you have a link to the failing test output? I also want to get ...
7 years, 7 months ago (2013-05-05 23:49:30 UTC) #12
kmadhusu
samarth@: Test timed out on Mac_rel try bot. Link: http://build.chromium.org/p/tryserver.chromium/builders/mac_rel/builds/125419/steps/interactive_ui_tests/logs/stdio I will investigate more. Thanks. ...
7 years, 7 months ago (2013-05-06 00:11:16 UTC) #13
palmer
lgtm
7 years, 7 months ago (2013-05-06 18:47:57 UTC) #14
kmadhusu
samarth@: Fixed interactive ui test. PTAL. Thanks.
7 years, 7 months ago (2013-05-06 19:01:54 UTC) #15
samarth
Please wait for Jeremy to look at the JS changes. But instant and the test ...
7 years, 7 months ago (2013-05-06 19:13:37 UTC) #16
jeremycho
https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1684 chrome/browser/resources/local_ntp/local_ntp.js:1684: var value = searchboxApiHandle.value; This shouldn't be needed anymore. ...
7 years, 7 months ago (2013-05-06 19:57:10 UTC) #17
sreeram
lgtm
7 years, 7 months ago (2013-05-06 20:00:32 UTC) #18
kmadhusu
https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1684 chrome/browser/resources/local_ntp/local_ntp.js:1684: var value = searchboxApiHandle.value; On 2013/05/06 19:57:10, jeremycho wrote: ...
7 years, 7 months ago (2013-05-06 20:24:44 UTC) #19
jeremycho
lgtm https://codereview.chromium.org/14562006/diff/68001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (left): https://codereview.chromium.org/14562006/diff/68001/chrome/browser/resources/local_ntp/local_ntp.js#oldcode1643 chrome/browser/resources/local_ntp/local_ntp.js:1643: searchboxApiHandle.onsubmit = function() { Can you add a ...
7 years, 7 months ago (2013-05-06 20:32:34 UTC) #20
kmadhusu
https://codereview.chromium.org/14562006/diff/68001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (left): https://codereview.chromium.org/14562006/diff/68001/chrome/browser/resources/local_ntp/local_ntp.js#oldcode1643 chrome/browser/resources/local_ntp/local_ntp.js:1643: searchboxApiHandle.onsubmit = function() { On 2013/05/06 20:32:34, jeremycho wrote: ...
7 years, 7 months ago (2013-05-06 21:11:44 UTC) #21
samarth
https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1684 chrome/browser/resources/local_ntp/local_ntp.js:1684: var value = searchboxApiHandle.value; On 2013/05/06 20:24:44, kmadhusu wrote: ...
7 years, 7 months ago (2013-05-06 21:16:26 UTC) #22
jeremycho
https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1684 chrome/browser/resources/local_ntp/local_ntp.js:1684: var value = searchboxApiHandle.value; On 2013/05/06 21:16:26, samarth wrote: ...
7 years, 7 months ago (2013-05-06 21:24:07 UTC) #23
kmadhusu
https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14562006/diff/58001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1684 chrome/browser/resources/local_ntp/local_ntp.js:1684: var value = searchboxApiHandle.value; On 2013/05/06 21:24:07, jeremycho wrote: ...
7 years, 7 months ago (2013-05-06 21:47:32 UTC) #24
kmadhusu
(repeating my offline conversation with samarth for reference): InstantExtendedTest.EscapeClearsOmnibox is timing out on all try ...
7 years, 7 months ago (2013-05-06 21:57:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14562006/79002
7 years, 7 months ago (2013-05-06 21:58:02 UTC) #26
commit-bot: I haz the power
7 years, 7 months ago (2013-05-07 03:02:04 UTC) #27
Message was sent while issue was closed.
Change committed as 198598

Powered by Google App Engine
This is Rietveld 408576698