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

Issue 3046041: [Linux Views] Refactor accelerator handler related code. (Closed)

Created:
10 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, xiyuan
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

[Linux Views] Refactor accelerator handler related code. This CL removes the accelerator handling logic in accelerator_handler_gtk.cc and implements a much simpler solution in WidgetGtk. The new approach always sends a key event to the focused View and native GtkWidget first and only sends it to the focus manager if it's not handled by any View or native GtkWidget. BUG=23383 AcceleratorHandler on Windows should not dispatch the KEYUP messages eaten by the FocusManager BUG=40966 BrowserKeyEventsTest.AccessKeys is crashy BUG=49701 [Linux Views]Some Emacs keybindings are broken in omnibox and find in page box. TEST=Press Alt key in different place (web page, omnibox, find bar, etc.) to see if menu bar can be focused correctly. Press alt-F to popup wrench menu and Escape to close it, then try alt key again. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54947

Patch Set 1 #

Patch Set 2 : Fix compile issue. #

Patch Set 3 : Fix windows build and AcceleratorHandlerGtkTest. #

Patch Set 4 : Update comment. #

Patch Set 5 : Prevent ctrl+alt. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -154 lines) Patch
M base/keyboard_code_conversion_gtk.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/browser_keyevents_browsertest.cc View 1 2 3 4 2 chunks +54 lines, -8 lines 0 comments Download
M chrome/browser/renderer_host/gtk_im_context_wrapper.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M views/focus/accelerator_handler.h View 1 chunk +0 lines, -11 lines 0 comments Download
M views/focus/accelerator_handler_gtk.cc View 1 chunk +3 lines, -104 lines 0 comments Download
M views/focus/accelerator_handler_gtk_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M views/focus/focus_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M views/focus/focus_manager_unittest.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M views/widget/gtk_views_window.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M views/widget/widget_gtk.h View 3 chunks +8 lines, -2 lines 0 comments Download
M views/widget/widget_gtk.cc View 1 2 3 4 5 chunks +73 lines, -11 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
James Su
10 years, 4 months ago (2010-08-03 03:40:59 UTC) #1
dmazzoni
Code changes look okay to me. Implementation is almost correct, but I found one issue: ...
10 years, 4 months ago (2010-08-03 19:21:42 UTC) #2
James Su
On 2010/08/03 19:21:42, Dominic Mazzoni wrote: > Code changes look okay to me. > > ...
10 years, 4 months ago (2010-08-03 19:28:39 UTC) #3
James Su
CL has been updated to fix cases like ctrl+alt. On 2010/08/03 19:28:39, James Su wrote: ...
10 years, 4 months ago (2010-08-03 19:53:36 UTC) #4
James Su
Any feedback?
10 years, 4 months ago (2010-08-04 16:57:34 UTC) #5
dmazzoni
I'm happy, but I think either jcivelli or sky should take a look also. - ...
10 years, 4 months ago (2010-08-04 17:37:54 UTC) #6
James Su
Add sky. On 2010/08/04 17:37:54, Dominic Mazzoni wrote: > I'm happy, but I think either ...
10 years, 4 months ago (2010-08-04 17:56:50 UTC) #7
Jay Civelli
LGTM http://codereview.chromium.org/3046041/diff/4013/9012 File views/widget/widget_gtk.cc (right): http://codereview.chromium.org/3046041/diff/4013/9012#newcode888 views/widget/widget_gtk.cc:888: // trigger VKEY_MENU when only this key is ...
10 years, 4 months ago (2010-08-04 18:21:00 UTC) #8
sky
10 years, 4 months ago (2010-08-04 18:24:22 UTC) #9
As long as Jay reviewed this, you don't need me.

  -Scott

On Wed, Aug 4, 2010 at 10:56 AM,  <suzhe@chromium.org> wrote:
> Add sky.
>
> On 2010/08/04 17:37:54, Dominic Mazzoni wrote:
>>
>> I'm happy, but I think either jcivelli or sky should take a look also.
>
>> - Dominic
>
>> On Wed, Aug 4, 2010 at 9:57 AM, <mailto:suzhe@chromium.org> wrote:
>
>> > Any feedback?
>> >
>> >
>> > http://codereview.chromium.org/3046041/show
>> >
>
>
>
>
> http://codereview.chromium.org/3046041/show
>

Powered by Google App Engine
This is Rietveld 408576698