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

Issue 14646034: Add onfocuschange to the Extended Search API, with associated isFocused attribute. (Closed)

Created:
7 years, 7 months ago by Donn Denman
Modified:
7 years, 6 months ago
CC:
chromium-reviews, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, sreeram, gideonwald, dominich, Aaron Boodman, David Black, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add onfocuschange to the Extended Search API, with associated isFocused attribute. BUG=238418 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202937

Patch Set 1 #

Total comments: 5

Patch Set 2 : Using KeyCaptureChange IPC for notification of focus change, and checking if it really changed in t… #

Total comments: 18

Patch Set 3 : Applied Samarth's suggestions: Maintaining separate booleans for focus and catpure in searchbox.h. … #

Total comments: 4

Patch Set 4 : Fix indent issues. #

Total comments: 16

Patch Set 5 : Addressed Samarth's recent comments. Still TODO(donnd): tests. #

Patch Set 6 : Added unit tests #

Total comments: 18

Patch Set 7 : Addressed Samarth's most recent round of comments (on the unit test, etc). #

Patch Set 8 : synced to today's master #

Patch Set 9 : Quick try to fix tests on Mac by adding a call to BringBrowserWindowToFront(). #

Patch Set 10 : Trying again after rebase master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -51 lines) Patch
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -18 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +67 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/omnibox_focus_state.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 4 chunks +29 lines, -8 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.h View 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 5 chunks +32 lines, -0 lines 0 comments Download
M chrome/test/data/instant_extended.html View 1 2 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Donn Denman
Michael, here's what I have so far. Still TODO includes adding a unit test. Let ...
7 years, 7 months ago (2013-05-08 23:43:02 UTC) #1
melevin
Looks good to me. I don't know what could be causing the multiple focus calls ...
7 years, 7 months ago (2013-05-09 16:41:11 UTC) #2
samarth
https://codereview.chromium.org/14646034/diff/1/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/14646034/diff/1/chrome/browser/ui/search/instant_controller.cc#newcode964 chrome/browser/ui/search/instant_controller.cc:964: if (focus_changed && state != OMNIBOX_FOCUS_INVISIBLE) { We should ...
7 years, 7 months ago (2013-05-10 00:55:31 UTC) #3
Donn Denman
Samarth, Can you take another look? I'm unsure about a couple of things with the ...
7 years, 7 months ago (2013-05-13 18:00:39 UTC) #4
samarth
https://codereview.chromium.org/14646034/diff/7001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14646034/diff/7001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1675 chrome/browser/resources/local_ntp/local_ntp.js:1675: // TODO(donnd): consider adding an onfocuschange handler. Not need ...
7 years, 7 months ago (2013-05-13 20:56:52 UTC) #5
samarth
https://codereview.chromium.org/14646034/diff/7001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/14646034/diff/7001/chrome/browser/ui/search/instant_controller.cc#newcode1163 chrome/browser/ui/search/instant_controller.cc:1163: OMNIBOX_FOCUS_CHANGE_INIT); On 2013/05/13 20:56:53, samarth wrote: > Don't need ...
7 years, 7 months ago (2013-05-13 21:01:09 UTC) #6
Donn Denman
Thanks Samarth, hopefully we're getting close. https://codereview.chromium.org/14646034/diff/7001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/14646034/diff/7001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1675 chrome/browser/resources/local_ntp/local_ntp.js:1675: // TODO(donnd): consider ...
7 years, 7 months ago (2013-05-13 23:44:50 UTC) #7
melevin
Still seeing the double "onfocuschange" calls when clicking on the fakebox. https://codereview.chromium.org/14646034/diff/18001/chrome/browser/ui/search/instant_controller.h File chrome/browser/ui/search/instant_controller.h (right): ...
7 years, 7 months ago (2013-05-14 22:06:22 UTC) #8
Donn Denman
I think we decided it's an independent bug/feature that clicking in the fakebox triggers multiple ...
7 years, 7 months ago (2013-05-14 22:39:26 UTC) #9
samarth
+jschuh for IPC review Almost ready to go. Mostly just nits below. And also, please ...
7 years, 7 months ago (2013-05-15 19:05:53 UTC) #10
Donn Denman
Samarth, some great bugs caught by your recent review! I'll work on adding a test ...
7 years, 7 months ago (2013-05-20 23:48:14 UTC) #11
Donn Denman
Samarth, I think this is ready now. Should I add Jered for review?
7 years, 7 months ago (2013-05-22 02:41:52 UTC) #12
samarth
+sky for c/b/ui/omnibox and c/common LGTM with a few last comments. Thanks for adding a ...
7 years, 7 months ago (2013-05-22 04:40:56 UTC) #13
sky
LGTM
7 years, 7 months ago (2013-05-22 15:47:38 UTC) #14
Donn Denman
Thanks Samarth and sky. https://codereview.chromium.org/14646034/diff/36001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/14646034/diff/36001/chrome/browser/ui/search/instant_controller.cc#newcode1534 chrome/browser/ui/search/instant_controller.cc:1534: instant_tab_->FocusChanged(omnibox_focus_state_, On 2013/05/22 04:40:56, samarth ...
7 years, 7 months ago (2013-05-22 17:37:36 UTC) #15
jschuh
looks like innocuous enum values. ipc security lgtm.
7 years, 7 months ago (2013-05-23 01:15:02 UTC) #16
samarth
SLGTM Thanks, Samarth https://codereview.chromium.org/14646034/diff/36001/chrome/browser/ui/search/instant_extended_interactive_uitest.cc File chrome/browser/ui/search/instant_extended_interactive_uitest.cc (right): https://codereview.chromium.org/14646034/diff/36001/chrome/browser/ui/search/instant_extended_interactive_uitest.cc#newcode2044 chrome/browser/ui/search/instant_extended_interactive_uitest.cc:2044: EXPECT_TRUE(UpdateSearchState(instant()->GetOverlayContents())); On 2013/05/22 17:37:36, Donn Denman ...
7 years, 7 months ago (2013-05-23 21:06:33 UTC) #17
Donn Denman
Filed issue https://code.google.com/p/chromium/issues/detail?id=243480 to fix the other instances. Should I go ahead and change them ...
7 years, 7 months ago (2013-05-23 21:28:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/donnd@chromium.org/14646034/56001
7 years, 7 months ago (2013-05-23 22:24:18 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/search/instant_controller.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-23 22:24:21 UTC) #20
Donn Denman
These new tests are failing on mac_rel, but work on other platforms. It looks like ...
7 years, 7 months ago (2013-05-24 16:38:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/donnd@chromium.org/14646034/71001
7 years, 6 months ago (2013-05-29 16:24:23 UTC) #22
Donn Denman
On 2013/05/24 16:38:02, Donn Denman wrote: > These new tests are failing on mac_rel, but ...
7 years, 6 months ago (2013-05-29 16:26:37 UTC) #23
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 19:39:54 UTC) #24
Message was sent while issue was closed.
Change committed as 202937

Powered by Google App Engine
This is Rietveld 408576698