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

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed)

Created:
8 years, 1 month ago by samarth
Modified:
8 years ago
CC:
chromium-reviews, melevin, dominich, Aaron Boodman, David Black, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, Jered, beaudoin, dhollowa
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implement {Start,Stop}CapturingKeyStrokes for Instant. Implement {Start,Stop}CapturingKeyStrokes for Instant by transferring focus invisibly to the omnibox. This patch implements invisible focus for Aura. Other platforms will follow. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171160

Patch Set 1 #

Patch Set 2 : Redo API #

Patch Set 3 : Fix which active tab we use. #

Total comments: 3

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Keep invisible focus state in OmniboxEditModel. #

Total comments: 6

Patch Set 7 : Save focus visibility state per tab. #

Total comments: 11

Patch Set 8 : Address comments by mathp and dhollowa. #

Patch Set 9 : Other platforms. #

Patch Set 10 : Fix typo #

Patch Set 11 : More typos. #

Patch Set 12 : Rebase. Rename. #

Total comments: 2

Patch Set 13 : Amend comment. #

Patch Set 14 : Rebase. #

Total comments: 4

Patch Set 15 : Added Aura impl. #

Total comments: 2

Patch Set 16 : Switch order in BIC. #

Total comments: 17

Patch Set 17 : Address comments by Peter. #

Patch Set 18 : Fix typos. #

Patch Set 19 : Rebase. #

Total comments: 8

Patch Set 20 : Addressed comments by Sreeram. #

Patch Set 21 : Restore caret visibility differently. #

Total comments: 6

Patch Set 22 : #

Patch Set 23 : Update comment. #

Total comments: 2

Patch Set 24 : Rebase. Added comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -8 lines) Patch
M chrome/browser/instant/instant_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 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 15 16 17 18 19 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_tab.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +18 lines, -1 line 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 13 14 15 16 17 18 19 20 21 6 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_edit_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 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 +6 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +8 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 +6 lines, -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 15 16 17 18 1 chunk +10 lines, -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 15 16 17 18 19 3 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
samarth
Please review sreeram -> chrome/renderer/searchbox/..., chrome/browser/instant/... sky -> chrome/common/..., chrome/browser/ui/... jered -> sanity check As ...
8 years, 1 month ago (2012-11-08 18:36:22 UTC) #1
sreeram
Just a quick status update: Samarth & others are playing with some fakebox options. The ...
8 years, 1 month ago (2012-11-12 14:48:44 UTC) #2
samarth
Ok, I redid this change significantly: the API now just communicates the web searchbox focus ...
8 years, 1 month ago (2012-11-15 17:53:37 UTC) #3
Mathieu
http://codereview.chromium.org/11369137/diff/5012/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): http://codereview.chromium.org/11369137/diff/5012/chrome/browser/ui/search/search_tab_helper.cc#newcode89 chrome/browser/ui/search/search_tab_helper.cc:89: model_.SetMode(Mode(Mode::MODE_NTP_WEB_SEARCHBOX_HAS_FOCUS, false)); I think this is missing the origin ...
8 years, 1 month ago (2012-11-15 20:37:20 UTC) #4
dhollowa
http://codereview.chromium.org/11369137/diff/5012/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): http://codereview.chromium.org/11369137/diff/5012/chrome/browser/instant/instant_controller.cc#newcode633 chrome/browser/instant/instant_controller.cc:633: browser_->OnWebSearchBoxBlur(); BrowserInstantController is not needed to set this. You ...
8 years, 1 month ago (2012-11-15 21:31:00 UTC) #5
Mathieu
Comments for patch set 6. https://chromiumcodereview.appspot.com/11369137/diff/12002/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://chromiumcodereview.appspot.com/11369137/diff/12002/chrome/browser/instant/instant_controller.h#newcode127 chrome/browser/instant/instant_controller.h:127: void OnWebSearchBoxFocusChange(InstantLoader* loader, bool ...
8 years, 1 month ago (2012-11-20 23:26:01 UTC) #6
samarth
dhollowa: What do you think of this approach? I still need to make the platform-specific ...
8 years, 1 month ago (2012-11-20 23:31:02 UTC) #7
samarth
FYI, just to keep you apprised for what the next steps here are: 1) Actually ...
8 years, 1 month ago (2012-11-20 23:38:56 UTC) #8
dhollowa
Yes, this seems like a better direction to me... It keeps the focus visibility state ...
8 years, 1 month ago (2012-11-20 23:50:17 UTC) #9
samarth
Thanks for the quick reviews. Addressed all your comment. Working on other platforms now. https://codereview.chromium.org/11369137/diff/12002/chrome/browser/instant/instant_controller.h ...
8 years, 1 month ago (2012-11-21 00:40:15 UTC) #10
dhollowa
Will wait for the platform bits for final review. Thanks. https://codereview.chromium.org/11369137/diff/9002/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11369137/diff/9002/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode729 ...
8 years, 1 month ago (2012-11-21 00:55:18 UTC) #11
samarth
Ok, added Windows implementation (minus the actual visibility part which Mathieu will handle). Left Mac ...
8 years, 1 month ago (2012-11-21 01:04:50 UTC) #12
samarth
Peter: please review for chrome/browser/ui/... As I say in the description, this just sets up ...
8 years ago (2012-11-26 22:56:10 UTC) #13
dhollowa
Removing myself as reviewer. This current direction doesn't touch search:: pieces.
8 years ago (2012-11-27 22:00:53 UTC) #14
Mathieu
LGTM with regards to the interface with OmniboxView that I will be using to implement ...
8 years ago (2012-11-28 17:56:10 UTC) #15
samarth
Thanks. Fix the change description too. Samarth https://codereview.chromium.org/11369137/diff/19014/chrome/browser/ui/omnibox/omnibox_view.h File chrome/browser/ui/omnibox/omnibox_view.h (right): https://codereview.chromium.org/11369137/diff/19014/chrome/browser/ui/omnibox/omnibox_view.h#newcode156 chrome/browser/ui/omnibox/omnibox_view.h:156: // the ...
8 years ago (2012-11-28 19:42:43 UTC) #16
samarth
Peter, Sreeram: friendly ping?
8 years ago (2012-11-29 00:05:33 UTC) #17
sreeram
The CL itself is innocuous, so lgtm, but I have questions about the future plans: ...
8 years ago (2012-11-29 14:25:24 UTC) #18
Mathieu
On 2012/11/29 14:25:24, sreeram wrote: > The CL itself is innocuous, so lgtm, but I ...
8 years ago (2012-11-29 14:47:43 UTC) #19
samarth
palmer: please review the IPC change in chrome/common Thanks for the review Sreeram. As Mathieu ...
8 years ago (2012-11-29 16:57:52 UTC) #20
samarth
(Actually added palmer this time.) palmer: please review the IPC change in chrome/common Thanks! Samarth
8 years ago (2012-11-29 16:58:54 UTC) #21
palmer
LGTM from an IPC security point of view.
8 years ago (2012-11-29 19:46:09 UTC) #22
Peter Kasting
For chrome/browser/ui, I'm not really a fan of checking in a bunch of stubs here ...
8 years ago (2012-12-01 03:49:57 UTC) #23
samarth
Thanks for the review Peter. Per your suggestion, I folded in Mathieu's Aura implementation into ...
8 years ago (2012-12-03 06:46:15 UTC) #24
Mathieu
https://codereview.chromium.org/11369137/diff/19028/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/11369137/diff/19028/chrome/browser/ui/browser_instant_controller.cc#newcode135 chrome/browser/ui/browser_instant_controller.cc:135: omnibox_view->model()->SetFocusVisibility(false); Please switch this line and the line below.
8 years ago (2012-12-03 20:42:08 UTC) #25
samarth
https://codereview.chromium.org/11369137/diff/19028/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/11369137/diff/19028/chrome/browser/ui/browser_instant_controller.cc#newcode135 chrome/browser/ui/browser_instant_controller.cc:135: omnibox_view->model()->SetFocusVisibility(false); On 2012/12/03 20:42:09, Mathieu Perreault wrote: > Please ...
8 years ago (2012-12-03 21:22:21 UTC) #26
Peter Kasting
This seems basically OK, but I have a couple questions. https://codereview.chromium.org/11369137/diff/16008/chrome/browser/ui/browser_instant_controller.h File chrome/browser/ui/browser_instant_controller.h (right): https://codereview.chromium.org/11369137/diff/16008/chrome/browser/ui/browser_instant_controller.h#newcode67 ...
8 years ago (2012-12-04 02:00:51 UTC) #27
samarth
Thanks for the comments. Addressed them all below. Also, the way we've structured this now, ...
8 years ago (2012-12-04 04:55:34 UTC) #28
sreeram
https://codereview.chromium.org/11369137/diff/18028/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11369137/diff/18028/chrome/browser/instant/instant_controller.cc#newcode748 chrome/browser/instant/instant_controller.cc:748: if (extended_enabled_ && !instant_tab_ && loader_->contents() == contents && ...
8 years ago (2012-12-04 21:54:57 UTC) #29
samarth
Addressed all your comments Sreeram. https://codereview.chromium.org/11369137/diff/18028/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11369137/diff/18028/chrome/browser/instant/instant_controller.cc#newcode748 chrome/browser/instant/instant_controller.cc:748: if (extended_enabled_ && !instant_tab_ ...
8 years ago (2012-12-04 22:13:43 UTC) #30
sreeram
SLGTM
8 years ago (2012-12-04 22:16:14 UTC) #31
Peter Kasting
https://codereview.chromium.org/11369137/diff/16008/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/11369137/diff/16008/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode620 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:620: // the user directly clicks on the omnibox as ...
8 years ago (2012-12-04 22:23:31 UTC) #32
samarth
How about this? As I say in the comments. HandleFocusIn() isn't sufficient for the case ...
8 years ago (2012-12-04 22:47:12 UTC) #33
Peter Kasting
https://codereview.chromium.org/11369137/diff/17049/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/11369137/diff/17049/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode394 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:394: model()->SetCaretVisibility(true); Now that we've moved this to a function ...
8 years ago (2012-12-04 22:55:48 UTC) #34
samarth
Yep, those all make a lot of sense. Let me test it out and I'll ...
8 years ago (2012-12-04 22:58:06 UTC) #35
samarth
Alright, I think I have all the cases covered now: - If text is entered ...
8 years ago (2012-12-04 23:13:32 UTC) #36
Peter Kasting
LGTM with question https://codereview.chromium.org/11369137/diff/17077/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/11369137/diff/17077/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode582 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:582: // Restore caret visibility if focused ...
8 years ago (2012-12-05 00:52:53 UTC) #37
samarth
Thanks all for the reviews! Testing one final time and will then commit. Samarth https://codereview.chromium.org/11369137/diff/17077/chrome/browser/ui/views/omnibox/omnibox_view_views.cc ...
8 years ago (2012-12-05 01:15:50 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/11369137/25001
8 years ago (2012-12-05 01:19:47 UTC) #39
Peter Kasting
On 2012/12/05 01:15:50, samarth wrote: > Unfortunately no--either can happen independently. For example, if you ...
8 years ago (2012-12-05 01:20:58 UTC) #40
Peter Kasting
Hey, I just thought of something else. When the user clicks in the omnibox when ...
8 years ago (2012-12-05 02:10:07 UTC) #41
samarth
On 2012/12/05 02:10:07, Peter Kasting wrote: > Hey, I just thought of something else. > ...
8 years ago (2012-12-05 02:23:04 UTC) #42
Peter Kasting
On 2012/12/05 02:23:04, samarth wrote: > By the way, I was thinking a bit more ...
8 years ago (2012-12-05 02:41:54 UTC) #43
Peter Kasting
Just for clarity, here, since I already LGTMed this, you don't need another sign-off if ...
8 years ago (2012-12-05 04:32:43 UTC) #44
gideonwald
On 2012/12/05 04:32:43, Peter Kasting wrote: > Just for clarity, here, since I already LGTMed ...
8 years ago (2012-12-05 04:33:27 UTC) #45
commit-bot: I haz the power
8 years ago (2012-12-05 04:42:14 UTC) #46
Message was sent while issue was closed.
Change committed as 171160

Powered by Google App Engine
This is Rietveld 408576698