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

Issue 6363001: Makes chrome pass down the length of text as the end of the (Closed)

Created:
9 years, 11 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
tonyg
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Makes chrome pass down the length of text as the end of the selection for instant queries. At some point I'll wire through the actual cursor position, but this is better than what we had. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71509

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add support for selection_end and fix selectionStart #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -31 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 10 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 chunk +12 lines, -10 lines 0 comments Download
M chrome/renderer/render_view.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/renderer/searchbox_extension.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sky
9 years, 11 months ago (2011-01-14 18:24:12 UTC) #1
tonyg
LGTM http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_browsertest.cc File chrome/browser/instant/instant_browsertest.cc (right): http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_browsertest.cc#newcode180 chrome/browser/instant/instant_browsertest.cc:180: // window.chrome.searchBox.selectionStart Optional: I recommend also testing selectionEnd ...
9 years, 11 months ago (2011-01-14 18:53:27 UTC) #2
sky
I've done all of these, except testing beforeLoad. Net patch uploaded if you want to ...
9 years, 11 months ago (2011-01-14 19:07:02 UTC) #3
tonyg
9 years, 11 months ago (2011-01-14 19:10:33 UTC) #4
LGTM

On Fri, Jan 14, 2011 at 11:06 AM, Scott Violet <sky@chromium.org> wrote:
> I've done all of these, except testing beforeLoad. Net patch uploaded
> if you want to take another look.
>
>  -Scott
>
> On Fri, Jan 14, 2011 at 10:53 AM,  <tonyg@chromium.org> wrote:
>> LGTM
>>
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_...
>> File chrome/browser/instant/instant_browsertest.cc (right):
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_...
>> chrome/browser/instant/instant_browsertest.cc:180: //
>> window.chrome.searchBox.selectionStart
>> Optional: I recommend also testing selectionEnd (even though it always
>> matches selectionStart at the moment. I also recommend testing the
>> beforeLoad version of each.
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_...
>> File chrome/browser/instant/instant_loader.cc (right):
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/browser/instant/instant_...
>> chrome/browser/instant/instant_loader.cc:99: // TODO: support real
>> cursor position.
>> Should we open a tracking bug?
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/renderer/searchbox_exten...
>> File chrome/renderer/searchbox_extension.cc (right):
>>
>>
http://codereview.chromium.org/6363001/diff/1/chrome/renderer/searchbox_exten...
>> chrome/renderer/searchbox_extension.cc:82: "
>> window.chrome.searchBox.selection_start);";
>> s/selection_start/selectionStart/
>>
>> http://codereview.chromium.org/6363001/
>>
>

Powered by Google App Engine
This is Rietveld 408576698