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

Issue 10809063: Adding Javascript support for the Extended Searchbox API. (Closed)

Created:
8 years, 5 months ago by Shishir
Modified:
8 years, 4 months ago
Reviewers:
tonyg, David Black, sreeram, sky
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, David Black, tonyg
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Adding Javascript support for the Extended Searchbox API. This CL only adds the IPCs and renderer side hooks for the extended API, but does not make the API functional as the browser side changes are not implemented. They will be implemented in a future CL which will be flag protected. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151642

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixing compile issue on android #

Patch Set 3 : Remove test for older API, removed in this CL. #

Total comments: 10

Patch Set 4 : Addressing sky's comments. #

Total comments: 3

Patch Set 5 : Renaming InstantSuggestionParts to InstantAutocompleteResults. #

Patch Set 6 : Rebasing to incorporate Sreeram's changes. #

Patch Set 7 : Adding missing file from last upload. #

Total comments: 30

Patch Set 8 : Addressing Sreeram's changes and some naming changes. #

Patch Set 9 : Syncing to pickup moved searchbox code. #

Total comments: 14

Patch Set 10 : Addressing Sreeram's comments. #

Patch Set 11 : Fixing Windows Build. #

Total comments: 10

Patch Set 12 : Addressing Sreeram's comments. #

Patch Set 13 : Fixing string conversion. #

Total comments: 2

Patch Set 14 : Removing clear method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+683 lines, -81 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -7 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 5 chunks +11 lines, -15 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 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/instant/instant_loader_delegate.h View 1 2 3 4 5 6 7 2 chunks +1 line, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/instant_types.h View 1 2 3 4 5 8 9 10 11 12 13 2 chunks +60 lines, -0 lines 0 comments Download
A chrome/common/instant_types.cc View 1 2 3 4 5 6 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 5 chunks +35 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 3 chunks +155 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -7 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 5 chunks +51 lines, -14 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.h View 1 2 3 4 5 6 7 8 1 chunk +4 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 10 chunks +309 lines, -25 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Shishir
Please take a look.
8 years, 5 months ago (2012-07-23 23:46:07 UTC) #1
David Black
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { Access to these new ...
8 years, 5 months ago (2012-07-24 00:28:40 UTC) #2
Shishir
Adding sky for: chrome/common/.. changes. CCing tonyg for removal of older searchbox api. Please take ...
8 years, 5 months ago (2012-07-24 18:02:38 UTC) #3
sreeram
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { On 2012/07/24 00:28:40, dcblack ...
8 years, 5 months ago (2012-07-24 18:09:22 UTC) #4
sky
http://codereview.chromium.org/10809063/diff/2004/chrome/common/instant_types.cc File chrome/common/instant_types.cc (right): http://codereview.chromium.org/10809063/diff/2004/chrome/common/instant_types.cc#newcode7 chrome/common/instant_types.cc:7: InstantNativeSuggestionsParts::InstantNativeSuggestionsParts() { Make order match header (meaning InstantSuggestion should ...
8 years, 5 months ago (2012-07-24 21:14:32 UTC) #5
Shishir
http://codereview.chromium.org/10809063/diff/2004/chrome/common/instant_types.cc File chrome/common/instant_types.cc (right): http://codereview.chromium.org/10809063/diff/2004/chrome/common/instant_types.cc#newcode7 chrome/common/instant_types.cc:7: InstantNativeSuggestionsParts::InstantNativeSuggestionsParts() { On 2012/07/24 21:14:32, sky wrote: > Make ...
8 years, 5 months ago (2012-07-24 21:31:36 UTC) #6
sky
On Tue, Jul 24, 2012 at 2:31 PM, <shishir@chromium.org> wrote: > > http://codereview.chromium.org/10809063/diff/2004/chrome/common/instant_types.cc > File ...
8 years, 5 months ago (2012-07-24 22:26:02 UTC) #7
David Black
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { Then that guarding code ...
8 years, 5 months ago (2012-07-24 22:34:56 UTC) #8
sreeram
On 2012/07/24 22:26:02, sky wrote: > Does width really make sense here? I thought it ...
8 years, 5 months ago (2012-07-24 22:50:26 UTC) #9
sreeram
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { On 2012/07/24 22:34:56, dcblack ...
8 years, 5 months ago (2012-07-24 22:56:26 UTC) #10
sky
On Tue, Jul 24, 2012 at 3:50 PM, <sreeram@chromium.org> wrote: > On 2012/07/24 22:26:02, sky ...
8 years, 5 months ago (2012-07-24 22:58:55 UTC) #11
sky
http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h File chrome/common/instant_types.h (right): http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h#newcode52 chrome/common/instant_types.h:52: struct InstantNativeSuggestionsParts { 'native' is a bit confusing here. ...
8 years, 5 months ago (2012-07-24 23:00:23 UTC) #12
David Black
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { From what I can ...
8 years, 5 months ago (2012-07-24 23:05:06 UTC) #13
Shishir
http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h File chrome/common/instant_types.h (right): http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h#newcode52 chrome/common/instant_types.h:52: struct InstantNativeSuggestionsParts { On 2012/07/24 23:00:23, sky wrote: > ...
8 years, 5 months ago (2012-07-24 23:28:07 UTC) #14
sky
On Tue, Jul 24, 2012 at 4:28 PM, <shishir@chromium.org> wrote: > > http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h > File ...
8 years, 5 months ago (2012-07-24 23:43:36 UTC) #15
Shishir
On 2012/07/24 23:43:36, sky wrote: > On Tue, Jul 24, 2012 at 4:28 PM, <mailto:shishir@chromium.org> ...
8 years, 5 months ago (2012-07-24 23:57:01 UTC) #16
sky
On Tue, Jul 24, 2012 at 4:57 PM, <shishir@chromium.org> wrote: > On 2012/07/24 23:43:36, sky ...
8 years, 5 months ago (2012-07-25 00:31:36 UTC) #17
sreeram
http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc File chrome/renderer/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/1/chrome/renderer/searchbox_extension.cc#newcode240 chrome/renderer/searchbox_extension.cc:240: } else if (name->Equals(v8::String::New("GetNativeSuggestions"))) { On 2012/07/24 23:05:07, dcblack ...
8 years, 4 months ago (2012-07-25 17:34:59 UTC) #18
sreeram
http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h File chrome/common/instant_types.h (right): http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h#newcode52 chrome/common/instant_types.h:52: struct InstantNativeSuggestionsParts { On 2012/07/24 23:28:07, Shishir wrote: > ...
8 years, 4 months ago (2012-07-25 17:48:23 UTC) #19
Shishir
On 2012/07/25 17:48:23, sreeram wrote: > http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h > File chrome/common/instant_types.h (right): > > http://codereview.chromium.org/10809063/diff/11003/chrome/common/instant_types.h#newcode52 > ...
8 years, 4 months ago (2012-07-25 19:31:36 UTC) #20
Shishir
Renamed InstantSuggestionParts as suggested.
8 years, 4 months ago (2012-07-25 21:15:25 UTC) #21
sky
What will the JS API use for names? -Scott On Wed, Jul 25, 2012 at ...
8 years, 4 months ago (2012-07-25 21:16:21 UTC) #22
Shishir
On 2012/07/25 21:16:21, sky wrote: > What will the JS API use for names? > ...
8 years, 4 months ago (2012-07-25 21:24:57 UTC) #23
Shishir
Rebased to sreeram's changes. Please take a look.
8 years, 4 months ago (2012-08-09 21:09:05 UTC) #24
sky
Tony should review the searchbox related changes and Sreeram the instant side.
8 years, 4 months ago (2012-08-09 21:45:47 UTC) #25
Shishir
On 2012/08/09 21:45:47, sky wrote: > Tony should review the searchbox related changes and Sreeram ...
8 years, 4 months ago (2012-08-09 21:57:47 UTC) #26
sky
If not Darin, maybe he could suggest someone. -Scott On Thu, Aug 9, 2012 at ...
8 years, 4 months ago (2012-08-09 21:58:45 UTC) #27
sreeram
You should update the CL description to say that this CL just adds the IPCs ...
8 years, 4 months ago (2012-08-09 22:13:51 UTC) #28
Shishir
http://codereview.chromium.org/10809063/diff/33002/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): http://codereview.chromium.org/10809063/diff/33002/chrome/browser/instant/instant_controller.h#newcode202 chrome/browser/instant/instant_controller.h:202: InstantCompleteBehavior last_complete_behavior_; On 2012/08/09 22:13:51, sreeram wrote: > You ...
8 years, 4 months ago (2012-08-10 18:16:57 UTC) #29
sreeram
http://codereview.chromium.org/10809063/diff/21018/chrome/renderer/resources/extensions/searchbox_api.js File chrome/renderer/resources/extensions/searchbox_api.js (right): http://codereview.chromium.org/10809063/diff/21018/chrome/renderer/resources/extensions/searchbox_api.js#newcode18 chrome/renderer/resources/extensions/searchbox_api.js:18: native function GetAutocompleteResults(); Don't we need all the shadow ...
8 years, 4 months ago (2012-08-13 16:37:08 UTC) #30
Shishir
Please take another look. http://codereview.chromium.org/10809063/diff/21018/chrome/renderer/resources/extensions/searchbox_api.js File chrome/renderer/resources/extensions/searchbox_api.js (right): http://codereview.chromium.org/10809063/diff/21018/chrome/renderer/resources/extensions/searchbox_api.js#newcode18 chrome/renderer/resources/extensions/searchbox_api.js:18: native function GetAutocompleteResults(); On 2012/08/13 ...
8 years, 4 months ago (2012-08-13 18:11:12 UTC) #31
Shishir
Please take a look.
8 years, 4 months ago (2012-08-13 19:42:41 UTC) #32
sreeram
http://codereview.chromium.org/10809063/diff/27009/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/27009/chrome/renderer/searchbox/searchbox_extension.cc#newcode46 chrome/renderer/searchbox/searchbox_extension.cc:46: s->Write(reinterpret_cast<uint16_t*>(WriteInto(&result, len + 1)), 0, len); How about this ...
8 years, 4 months ago (2012-08-13 22:40:56 UTC) #33
Shishir
http://codereview.chromium.org/10809063/diff/27009/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): http://codereview.chromium.org/10809063/diff/27009/chrome/renderer/searchbox/searchbox_extension.cc#newcode46 chrome/renderer/searchbox/searchbox_extension.cc:46: s->Write(reinterpret_cast<uint16_t*>(WriteInto(&result, len + 1)), 0, len); On 2012/08/13 22:40:56, ...
8 years, 4 months ago (2012-08-13 23:24:36 UTC) #34
sreeram
lgtm
8 years, 4 months ago (2012-08-14 00:05:13 UTC) #35
Shishir
Hi Scott, Could you look at the chrome/common/... changes? Thanks Shishir
8 years, 4 months ago (2012-08-14 00:07:53 UTC) #36
sky
http://codereview.chromium.org/10809063/diff/16005/chrome/common/instant_types.h File chrome/common/instant_types.h (right): http://codereview.chromium.org/10809063/diff/16005/chrome/common/instant_types.h#newcode44 chrome/common/instant_types.h:44: void Clear(); newline between 43/44 and add a description. ...
8 years, 4 months ago (2012-08-14 17:10:10 UTC) #37
Shishir
PTAL. http://codereview.chromium.org/10809063/diff/16005/chrome/common/instant_types.h File chrome/common/instant_types.h (right): http://codereview.chromium.org/10809063/diff/16005/chrome/common/instant_types.h#newcode44 chrome/common/instant_types.h:44: void Clear(); On 2012/08/14 17:10:10, sky wrote: > ...
8 years, 4 months ago (2012-08-14 17:30:19 UTC) #38
sky
LGTM
8 years, 4 months ago (2012-08-14 17:46:52 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/10809063/25018
8 years, 4 months ago (2012-08-14 22:37:23 UTC) #40
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 04:04:40 UTC) #41
Change committed as 151642

Powered by Google App Engine
This is Rietveld 408576698