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

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed)

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

Description

Instant API: tell page whether the browser is capturing key strokes. TESTED=manual, per bug BUG=164782 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172524

Patch Set 1 #

Patch Set 2 : Fix js error. #

Total comments: 13

Patch Set 3 : Better naming. #

Patch Set 4 : Use enum. #

Patch Set 5 : Finish renaming. #

Total comments: 7

Patch Set 6 : Rebase. Addressed comments. #

Total comments: 2

Patch Set 7 : Initialize properly. #

Patch Set 8 : Fakebox. #

Patch Set 9 : Undo last patch. #

Patch Set 10 : Rebase and refactor. #

Total comments: 11

Patch Set 11 : Fixed comments, mouse handling logic. #

Total comments: 8

Patch Set 12 : Rebase. #

Patch Set 13 : Rebase. Address comments. #

Total comments: 4

Patch Set 14 : No assignment in conditionals. #

Total comments: 3

Patch Set 15 : Rebase. Use FocusState in the model. #

Patch Set 16 : Remove stray include. #

Patch Set 17 : Move omnibox_types.h #

Patch Set 18 : Fix long lines. #

Patch Set 19 : Rebase. #

Total comments: 13

Patch Set 20 : Rebase and addresssed comments. #

Patch Set 21 : Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -112 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +12 lines, -6 lines 0 comments Download
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 1 chunk +3 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 1 chunk +5 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 4 chunks +12 lines, -8 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 5 chunks +61 lines, -42 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 +1 line, -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 1 chunk +4 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 6 chunks +48 lines, -15 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 13 14 12 chunks +49 lines, -23 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 3 chunks +15 lines, -11 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 17 18 19 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 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 3 chunks +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 3 chunks +3 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 4 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 5 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
samarth
PTAL I'm really not a fan of onkeystrokecapturingmodechange so if you have ideas for anything ...
8 years ago (2012-11-28 07:11:46 UTC) #1
Jered
https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.cc#newcode494 chrome/browser/instant/instant_controller.cc:494: loader_->OnStoppedCapturingKeyStrokes(); OnStopKeyCapture https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.cc#newcode517 chrome/browser/instant/instant_controller.cc:517: loader_->OnStartedCapturingKeyStrokes(); OnStartKeyCapture https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h ...
8 years ago (2012-11-28 17:50:15 UTC) #2
samarth
Improved and shortened the naming throughout. Thanks, Samarth https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.cc#newcode494 chrome/browser/instant/instant_controller.cc:494: loader_->OnStoppedCapturingKeyStrokes(); ...
8 years ago (2012-11-28 19:33:09 UTC) #3
Jered
lgtm with nit https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.h#newcode228 chrome/browser/instant/instant_controller.h:228: bool is_omnibox_invisibly_focused_; On 2012/11/28 19:33:09, samarth ...
8 years ago (2012-11-28 19:56:56 UTC) #4
samarth
https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/11413217/diff/3001/chrome/browser/instant/instant_controller.h#newcode228 chrome/browser/instant/instant_controller.h:228: bool is_omnibox_invisibly_focused_; On 2012/11/28 19:56:57, Jered wrote: > On ...
8 years ago (2012-11-28 22:08:10 UTC) #5
sreeram
https://codereview.chromium.org/11413217/diff/4013/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11413217/diff/4013/chrome/browser/instant/instant_controller.cc#newcode492 chrome/browser/instant/instant_controller.cc:492: SendKeyCaptureModeToPage(); IsCurrent() returns false when on the NTP. Don't ...
8 years ago (2012-11-29 13:22:31 UTC) #6
samarth
jschuh -> Please review the IPC change in chrome/common/ Thanks for the review, Sreeram! Samarth ...
8 years ago (2012-11-29 17:28:20 UTC) #7
Jered
https://codereview.chromium.org/11413217/diff/7002/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/11413217/diff/7002/chrome/renderer/searchbox/searchbox.cc#newcode12 chrome/renderer/searchbox/searchbox.cc:12: SearchBox::SearchBox(content::RenderView* render_view) Initialize is_key_capture_enabled_ in the constructor.
8 years ago (2012-11-29 17:32:47 UTC) #8
samarth
https://codereview.chromium.org/11413217/diff/7002/chrome/renderer/searchbox/searchbox.cc File chrome/renderer/searchbox/searchbox.cc (right): https://codereview.chromium.org/11413217/diff/7002/chrome/renderer/searchbox/searchbox.cc#newcode12 chrome/renderer/searchbox/searchbox.cc:12: SearchBox::SearchBox(content::RenderView* render_view) On 2012/11/29 17:32:48, Jered wrote: > Initialize ...
8 years ago (2012-11-29 17:38:44 UTC) #9
sreeram
lgtm
8 years ago (2012-11-29 17:43:44 UTC) #10
jschuh
lgtm for ipc.
8 years ago (2012-11-29 17:58:27 UTC) #11
samarth
Peter: this is a follow on to my previous change. We tell the instant overlay ...
8 years ago (2012-12-05 19:03:59 UTC) #12
sreeram
Only nits. I don't have time today to think through what's happening in InstantController::OmniboxFocusChanged() (sorry!), ...
8 years ago (2012-12-05 19:48:23 UTC) #13
Peter Kasting
On 2012/12/05 19:03:59, samarth wrote: > Peter: this is a follow on to my previous ...
8 years ago (2012-12-06 01:34:03 UTC) #14
samarth
Oh sorry, please review the stuff in chrome/browser/ui. Thanks, Samarth
8 years ago (2012-12-06 01:36:02 UTC) #15
Peter Kasting
I just thought of something else I didn't think of last night... trying to set ...
8 years ago (2012-12-06 06:02:30 UTC) #16
Mathieu
On 2012/12/06 06:02:30, Peter Kasting wrote: > I just thought of something else I didn't ...
8 years ago (2012-12-06 13:17:26 UTC) #17
samarth
Ok, I tried to make the comments clearer; please let me know if this is ...
8 years ago (2012-12-06 16:15:50 UTC) #18
Peter Kasting
chrome/browser/ui LGTM with comments https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode727 chrome/browser/ui/omnibox/omnibox_edit_model.cc:727: } This block seems like ...
8 years ago (2012-12-07 23:22:02 UTC) #19
samarth
+sky: please review for chrome/common/instant_types.h Thanks! Samarth https://codereview.chromium.org/11413217/diff/16001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11413217/diff/16001/chrome/browser/instant/instant_controller.cc#newcode550 chrome/browser/instant/instant_controller.cc:550: // (More ...
8 years ago (2012-12-08 00:55:47 UTC) #20
Peter Kasting
https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode724 chrome/browser/ui/omnibox/omnibox_edit_model.cc:724: if (InstantController* instant = controller_->GetInstant()) { Oh, sorry, didn't ...
8 years ago (2012-12-08 01:12:19 UTC) #21
samarth
Thanks for the review Peter! https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/25001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode724 chrome/browser/ui/omnibox/omnibox_edit_model.cc:724: if (InstantController* instant = ...
8 years ago (2012-12-08 01:51:34 UTC) #22
Peter Kasting
https://codereview.chromium.org/11413217/diff/32001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/32001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode726 chrome/browser/ui/omnibox/omnibox_edit_model.cc:726: // send an update if the caret was already ...
8 years ago (2012-12-08 02:07:51 UTC) #23
sky
https://codereview.chromium.org/11413217/diff/35001/chrome/common/instant_types.h File chrome/common/instant_types.h (right): https://codereview.chromium.org/11413217/diff/35001/chrome/common/instant_types.h#newcode148 chrome/common/instant_types.h:148: FOCUS_NONE, // Not focused. Name this enums more specifically, ...
8 years ago (2012-12-10 15:15:39 UTC) #24
samarth
Ok, how about this? I agree: this makes things much easier to understand. Thanks, Samarth ...
8 years ago (2012-12-10 23:44:59 UTC) #25
sky
https://codereview.chromium.org/11413217/diff/35001/chrome/common/instant_types.h File chrome/common/instant_types.h (right): https://codereview.chromium.org/11413217/diff/35001/chrome/common/instant_types.h#newcode148 chrome/common/instant_types.h:148: FOCUS_NONE, // Not focused. On 2012/12/10 23:45:00, samarth wrote: ...
8 years ago (2012-12-11 00:12:45 UTC) #26
samarth
Ok, moved it to browser/ui/omnibox. Peter, please let me know if you'd rather I just ...
8 years ago (2012-12-11 00:25:16 UTC) #27
sky
LGTM
8 years ago (2012-12-11 00:55:10 UTC) #28
samarth
Thanks sky! Peter: did you have any more comments here? Thanks, Samarth
8 years ago (2012-12-11 18:06:43 UTC) #29
Peter Kasting
LGTM https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode739 chrome/browser/ui/omnibox/omnibox_edit_model.cc:739: SetFocusState(visible ? OMNIBOX_FOCUS_VISIBLE : OMNIBOX_FOCUS_INVISIBLE, I wonder if ...
8 years ago (2012-12-11 19:20:50 UTC) #30
samarth
Thanks for the review! Samarth https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode739 chrome/browser/ui/omnibox/omnibox_edit_model.cc:739: SetFocusState(visible ? OMNIBOX_FOCUS_VISIBLE : ...
8 years ago (2012-12-12 01:11:25 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/11413217/59001
8 years ago (2012-12-12 01:11:46 UTC) #32
Peter Kasting
https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.h File chrome/browser/ui/omnibox/omnibox_edit_model.h (right): https://codereview.chromium.org/11413217/diff/50001/chrome/browser/ui/omnibox/omnibox_edit_model.h#newcode199 chrome/browser/ui/omnibox/omnibox_edit_model.h:199: } On 2012/12/12 01:11:26, samarth wrote: > On 2012/12/11 ...
8 years ago (2012-12-12 01:21:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/samarth@chromium.org/11413217/66002
8 years ago (2012-12-12 02:25:07 UTC) #34
commit-bot: I haz the power
8 years ago (2012-12-12 04:18:21 UTC) #35
Message was sent while issue was closed.
Change committed as 172524

Powered by Google App Engine
This is Rietveld 408576698