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

Issue 7250001: Refactor the glib message-pump, and use it as the base for a gtk message pump and an X message pump. (Closed)

Created:
9 years, 6 months ago by sadrul
Modified:
9 years, 6 months ago
CC:
chromium-reviews, dhollowa, davemoore+watch_chromium.org, brettw-cc_chromium.org, rjkroege
Visibility:
Public.

Description

Refactor the glib message-pump, and use it as the base for a gtk message pump and an X message pump. The changes: * Rename MessagePumpGlibX to MessagePumpX. * Rename MessagePumpForUI to MessagePumpGlib. * Move some stuff out of MessagePumpGlib, and into MessagePumpGtk and MessagePumpX. * Rename MessagePumpForUI::Observer to MessageObserver, moved the platform-specific implementations into MessagePumpGtk and MessagePumpX. Ditto for MessagePumpForUI::Dispatcher. MessagePumpX is independent of MessagePumpGtk. At the moment, MessagePumpX does process some GDK event, but once we have a complete native_widget_x, we can take out the GDK processing and things should continue to work. BUG=none TEST=existing message-pump tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90418

Patch Set 1 : . #

Total comments: 6

Patch Set 2 : . #

Total comments: 14

Patch Set 3 : address comments from sky, fischman and oshima san #

Total comments: 9

Patch Set 4 : address evan's comments #

Patch Set 5 : media.gyp update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -620 lines) Patch
M base/base.gypi View 1 2 3 2 chunks +11 lines, -4 lines 0 comments Download
M base/message_loop.h View 2 chunks +7 lines, -9 lines 0 comments Download
M base/message_loop.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M base/message_pump_glib.h View 1 2 3 4 chunks +29 lines, -60 lines 0 comments Download
M base/message_pump_glib.cc View 12 chunks +21 lines, -55 lines 0 comments Download
D base/message_pump_glib_x.h View 1 chunk +0 lines, -97 lines 0 comments Download
D base/message_pump_glib_x.cc View 1 chunk +0 lines, -234 lines 0 comments Download
D base/message_pump_glib_x_dispatch.h View 1 chunk +0 lines, -46 lines 0 comments Download
A base/message_pump_gtk.h View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A base/message_pump_gtk.cc View 1 chunk +52 lines, -0 lines 0 comments Download
A base/message_pump_x.h View 1 2 1 chunk +144 lines, -0 lines 0 comments Download
A + base/message_pump_x.cc View 1 2 12 chunks +33 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.h View 1 2 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.cc View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.cc View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/focus/accelerator_handler.h View 1 chunk +2 lines, -3 lines 0 comments Download
M views/controls/menu/menu_controller.h View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M views/controls/menu/menu_controller.cc View 1 2 2 chunks +9 lines, -13 lines 0 comments Download
M views/controls/menu/nested_dispatcher_gtk.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M views/controls/menu/nested_dispatcher_gtk.cc View 1 2 2 chunks +8 lines, -17 lines 0 comments Download
M views/focus/accelerator_handler.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M views/focus/accelerator_handler_touch.cc View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
M views/views.gyp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sadrul
Hi! This is the refactoring of the message-pump. I have kept it so MessagePumpX is ...
9 years, 6 months ago (2011-06-24 03:22:38 UTC) #1
sadrul
9 years, 6 months ago (2011-06-24 03:23:38 UTC) #2
oshima
thanks! looks mostly good. just a few minor comments. http://codereview.chromium.org/7250001/diff/2022/base/message_pump_glib.h File base/message_pump_glib.h (right): http://codereview.chromium.org/7250001/diff/2022/base/message_pump_glib.h#newcode20 base/message_pump_glib.h:20: ...
9 years, 6 months ago (2011-06-24 05:55:15 UTC) #3
sadrul
@evan: Please take a look at the changes in base/. @sky: Please take a look ...
9 years, 6 months ago (2011-06-24 06:35:32 UTC) #4
oshima
LGTM with one nit. http://codereview.chromium.org/7250001/diff/1005/base/message_pump_glib.h File base/message_pump_glib.h (right): http://codereview.chromium.org/7250001/diff/1005/base/message_pump_glib.h#newcode21 base/message_pump_glib.h:21: // Observers are notified of ...
9 years, 6 months ago (2011-06-24 15:26:12 UTC) #5
sky
http://codereview.chromium.org/7250001/diff/1005/base/message_pump_x.h File base/message_pump_x.h (right): http://codereview.chromium.org/7250001/diff/1005/base/message_pump_x.h#newcode23 base/message_pump_x.h:23: virtual ~MessagePumpDispatcher() {} If the pump doesn't own the ...
9 years, 6 months ago (2011-06-24 15:27:12 UTC) #6
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/7250001/diff/1005/media/media.gyp File media/media.gyp (right): http://codereview.chromium.org/7250001/diff/1005/media/media.gyp#newcode684 media/media.gyp:684: '../build/linux/system.gyp:gtk', This looks strange to me, since none of ...
9 years, 6 months ago (2011-06-24 15:55:02 UTC) #7
sadrul
Addressed all comments from sky, fischman and oshima san. http://codereview.chromium.org/7250001/diff/1005/base/message_pump_glib.h File base/message_pump_glib.h (right): http://codereview.chromium.org/7250001/diff/1005/base/message_pump_glib.h#newcode21 base/message_pump_glib.h:21: ...
9 years, 6 months ago (2011-06-24 17:14:01 UTC) #8
Ami GONE FROM CHROMIUM
media/media.gyp LGTM (modulo that ISTM gyp style is to have local deps listed before other-directory ...
9 years, 6 months ago (2011-06-24 17:18:36 UTC) #9
sky
views stuff LGTM -Scott
9 years, 6 months ago (2011-06-24 17:24:37 UTC) #10
Evan Martin
base bits LGTM http://codereview.chromium.org/7250001/diff/8027/base/base.gypi File base/base.gypi (right): http://codereview.chromium.org/7250001/diff/8027/base/base.gypi#newcode376 base/base.gypi:376: 'sources!' : [ 'message_pump_x.*', ], I ...
9 years, 6 months ago (2011-06-24 17:33:14 UTC) #11
sadrul
Thanks! @sky: Do I have an LGTM for chrome/ or should I add someone else ...
9 years, 6 months ago (2011-06-24 18:12:54 UTC) #12
sky
On Fri, Jun 24, 2011 at 11:12 AM, <sadrul@chromium.org> wrote: > Thanks! > > @sky: ...
9 years, 6 months ago (2011-06-24 18:30:27 UTC) #13
sadrul
9 years, 6 months ago (2011-06-24 18:36:31 UTC) #14
On 2011/06/24 18:30:27, sky wrote:
> On Fri, Jun 24, 2011 at 11:12 AM,  <mailto:sadrul@chromium.org> wrote:
> > Thanks!
> >
> > @sky: Do I have an LGTM for chrome/ or should I add someone else for that
> > part?
> 
> Yes.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698