Chromium Code Reviews

Issue 159046: Implementing accelerators for Linux toolkit_views (Closed)

Created:
11 years, 5 months ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
rvargas (doing something else), Ben Goodger (Google), Evan Martin
CC:
chromium-reviews_googlegroups.com, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

This CL adds accelerators to the Linux toolkit views. The MessageLoop had to be modified to support Dispatchers on Linux. BUG=None TEST=On Windows and Linux, make sure the accelerators still work as expected. On Linux toolkit views, build and run the unit-tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22210

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 4

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Stats (+818 lines, -533 lines)
M base/keyboard_codes.h View 1 chunk +4 lines, -2 lines 0 comments
A base/keyboard_codes_linux.h View 1 chunk +214 lines, -0 lines 0 comments
A base/keyboard_codes_mac.h View 1 chunk +208 lines, -0 lines 0 comments
M base/keyboard_codes_posix.h View 1 chunk +0 lines, -208 lines 0 comments
M base/message_loop.h View 3 chunks +17 lines, -18 lines 0 comments
M base/message_loop.cc View 4 chunks +19 lines, -21 lines 0 comments
M base/message_pump_glib.h View 3 chunks +24 lines, -4 lines 0 comments
M base/message_pump_glib.cc View 3 chunks +13 lines, -4 lines 0 comments
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments
M chrome/browser/browser_main.cc View 2 chunks +4 lines, -2 lines 0 comments
M chrome/browser/browser_main_win.cc View 1 chunk +1 line, -1 line 0 comments
M chrome/browser/first_run_win.cc View 1 chunk +1 line, -1 line 0 comments
M chrome/chrome.gyp View 1 chunk +1 line, -1 line 0 comments
M chrome/common/temp_scaffolding_stubs.h View 1 chunk +0 lines, -3 lines 0 comments
M chrome/test/ui_test_utils.cc View 2 chunks +5 lines, -3 lines 0 comments
M views/event.h View 1 chunk +1 line, -1 line 0 comments
M views/event_gtk.cc View 1 chunk +6 lines, -2 lines 0 comments
A + views/focus/accelerator_handler.h View 1 chunk +22 lines, -12 lines 0 comments
A views/focus/accelerator_handler_gtk.cc View 1 chunk +61 lines, -0 lines 0 comments
A views/focus/accelerator_handler_win.cc View 1 chunk +44 lines, -0 lines 0 comments
M views/focus/focus_manager.h View 2 chunks +4 lines, -10 lines 0 comments
M views/focus/focus_manager.cc View 6 chunks +25 lines, -49 lines 0 comments
M views/focus/focus_manager_unittest.cc View 7 chunks +104 lines, -81 lines 0 comments
M views/view.cc View 2 chunks +0 lines, -3 lines 0 comments
M views/view_unittest.cc View 2 chunks +3 lines, -1 line 0 comments
M views/views.gyp View 4 chunks +4 lines, -4 lines 0 comments
D views/widget/accelerator_handler.h View 1 chunk +0 lines, -30 lines 0 comments
D views/widget/accelerator_handler.cc View 1 chunk +0 lines, -41 lines 0 comments
M views/widget/widget_gtk.h View 3 chunks +12 lines, -3 lines 0 comments
M views/widget/widget_gtk.cc View 3 chunks +11 lines, -2 lines 0 comments
M views/window/dialog_client_view.cc View 5 chunks +8 lines, -24 lines 0 comments

Messages

Total messages: 4 (0 generated)
jcampan
Ricardo, could you look at message_loop.* message_pump_glib.* files? Ben, could you look at the other ...
11 years, 4 months ago (2009-07-31 18:23:16 UTC) #1
Ben Goodger (Google)
views bits LGTM. http://codereview.chromium.org/159046/diff/310/324 File views/event_gtk.cc (right): http://codereview.chromium.org/159046/diff/310/324#newcode12 Line 12: // In order for accelerators ...
11 years, 4 months ago (2009-07-31 19:51:01 UTC) #2
rvargas (doing something else)
The message loop LGTM, but I'm adding Evan just in case. http://codereview.chromium.org/159046/diff/310/318 File base/message_loop.cc (right): ...
11 years, 4 months ago (2009-07-31 20:37:03 UTC) #3
Evan Martin
11 years, 4 months ago (2009-07-31 21:07:56 UTC) #4
http://codereview.chromium.org/159046/diff/310/316
File base/message_loop.h (right):

http://codereview.chromium.org/159046/diff/310/316#newcode434
Line 434: // Please see message_pump_win/message_pump_glib  for definitions of
these
nit: extra space

http://codereview.chromium.org/159046/diff/310/317
File base/message_pump_glib.h (right):

http://codereview.chromium.org/159046/diff/310/317#newcode53
Line 53: // Like MessagePump::Run, but GtkEvent objects are routed through
dispatcher.
typo: GdkEvent

Powered by Google App Engine