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

Issue 204006: [Mac] Make the pageup, Shift-pageup, and Option-Shift-pageup keys scroll the ... (Closed)

Created:
11 years, 3 months ago by rohitrao (ping after 24h)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, Ben Goodger (Google)
Visibility:
Public.

Description

[Mac] Make the pageup, Shift-pageup, and Option-Shift-pageup keys scroll the underlying webpage when using the findbar. BUG=http://crbug.com/17421 TEST=Try pressing pageup with focus in the findbar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26246

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M chrome/browser/cocoa/find_bar_cocoa_controller.mm View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rohitrao (ping after 24h)
The listed six selectors all scroll the webpage with the findbar closed, so I figured ...
11 years, 3 months ago (2009-09-14 18:54:47 UTC) #1
Scott Hess - ex-Googler
LGTM with the indicated line moved. Other comment just random thought. http://codereview.chromium.org/204006/diff/1/2 File chrome/browser/cocoa/find_bar_cocoa_controller.mm (right): ...
11 years, 3 months ago (2009-09-14 20:39:56 UTC) #2
rohitrao (ping after 24h)
http://codereview.chromium.org/204006/diff/1/2 File chrome/browser/cocoa/find_bar_cocoa_controller.mm (right): http://codereview.chromium.org/204006/diff/1/2#newcode126 Line 126: RenderViewHost* render_view_host = contents->render_view_host(); On 2009/09/14 20:39:56, shess ...
11 years, 3 months ago (2009-09-14 21:07:52 UTC) #3
Scott Hess - ex-Googler
I actually mis-spoke on the -keyUp: -keyEvent: would do it :-). In fact, you might ...
11 years, 3 months ago (2009-09-14 21:11:35 UTC) #4
Scott Hess - ex-Googler
11 years, 3 months ago (2009-09-14 21:14:07 UTC) #5
BTW, this comment is not intended to negate the earlier LGTM.

On Mon, Sep 14, 2009 at 2:11 PM, Scott Hess <shess@chromium.org> wrote:
> I actually mis-spoke on the -keyUp: =A0-keyEvent: would do it :-).
>
> In fact, you might want to follow-up and look at that method, just in
> case there are interesting things it's doing that your code should be.
> =A0I don't see anything offhand, but then again I don't claim to
> understand that code!
>
> -scott
>
>
> On Mon, Sep 14, 2009 at 2:07 PM, =A0<rohitrao@chromium.org> wrote:
>>
>> http://codereview.chromium.org/204006/diff/1/2
>> File chrome/browser/cocoa/find_bar_cocoa_controller.mm (right):
>>
>> http://codereview.chromium.org/204006/diff/1/2#newcode126
>> Line 126: RenderViewHost* render_view_host =3D
>> contents->render_view_host();
>> On 2009/09/14 20:39:56, shess wrote:
>>>
>>> Move this down by use.
>>
>> Done.
>>
>> http://codereview.chromium.org/204006/diff/1/2#newcode133
>> Line 133:
>> render_view_host->ForwardKeyboardEvent(NativeWebKeyboardEvent(event));
>> On 2009/09/14 20:39:56, shess wrote:
>>>
>>> Would it make sense to call [contents->GetNativeView()
>>
>> keyEvent:event]? =A0Or is
>>>
>>> that too crazy? =A0Hmm. =A0Probably too crazy.
>>
>> [contents->GetContentNativeView() keyUp:event] works, but it ends up
>> being more code because I have to split out keyUp/keyDown. =A0Leaving th=
is
>> as-is for now.
>>
>> http://codereview.chromium.org/204006
>>
>

Powered by Google App Engine
This is Rietveld 408576698