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

Issue 8021009: Consolidate message observer API for win and aura (and touch). (Closed)

Created:
9 years, 3 months ago by oshima
Modified:
9 years, 2 months ago
CC:
chromium-reviews, jennb, derat+watch_chromium.org, brettw-cc_chromium.org, kkania, Dmitry Titov, dcheng, prasadt, davemoore+watch_chromium.org, stevenjb, jianli, Paweł Hajdan Jr., dhollowa
Visibility:
Public.

Description

Consolidate message observer API for MessagePumpX and MessagePumWin This is an attempt to simplify the code around message pump observer. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103825

Patch Set 1 #

Total comments: 2

Patch Set 2 : message_pump_observer_aura.h #

Patch Set 3 : win fix #

Patch Set 4 : sync #

Patch Set 5 : renamed message_pump_observer_views.h, fix compilation errors, removed inlines #

Patch Set 6 : message_pump_observer_views.h -> message_pump_observer.h. remove views/aura from comments. #

Patch Set 7 : sync #

Total comments: 34

Patch Set 8 : addressed msw's comments #

Total comments: 24

Patch Set 9 : fix build #

Patch Set 10 : sync #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -224 lines) Patch
M base/message_loop.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A base/message_pump_observer.h View 1 2 3 4 5 6 7 1 chunk +54 lines, -0 lines 0 comments Download
M base/message_pump_win.h View 1 2 3 4 5 4 chunks +4 lines, -20 lines 0 comments Download
M base/message_pump_win.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M base/message_pump_x.h View 1 2 3 4 5 3 chunks +2 lines, -19 lines 0 comments Download
M base/message_pump_x.cc View 1 2 3 4 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/automation/ui_controls_gtk.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/jankometer.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -4 lines 0 comments Download
A + chrome/browser/notifications/balloon_collection_gtk.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_linux.cc View 1 2 3 4 1 chunk +0 lines, -87 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_win.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/html_dialog_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M views/mouse_watcher.cc View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -11 lines 0 comments Download
M views/widget/native_widget_gtk.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 2 comments Download
M views/widget/native_widget_win.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M views/widget/tooltip_manager_views.h View 1 chunk +4 lines, -6 lines 0 comments Download
M views/widget/tooltip_manager_views.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
oshima
Ben, sadrul, this is an attempt to consolidate MessagePumpObjserver and I'd like to hear your ...
9 years, 3 months ago (2011-09-23 18:33:56 UTC) #1
sadrul
+msw There is also going to be ui::NativeEvent (http://codereview.chromium.org/7942004/). views::NativeEvent will probably become XEvent* unconditionally ...
9 years, 3 months ago (2011-09-23 18:44:06 UTC) #2
oshima
On 2011/09/23 18:44:06, sadrul wrote: > +msw > > There is also going to be ...
9 years, 3 months ago (2011-09-23 18:49:10 UTC) #3
msw
On 2011/09/23 18:49:10, oshima wrote: > On 2011/09/23 18:44:06, sadrul wrote: > > +msw > ...
9 years, 3 months ago (2011-09-23 19:07:23 UTC) #4
msw
On 2011/09/23 19:07:23, msw wrote: > On 2011/09/23 18:49:10, oshima wrote: > > On 2011/09/23 ...
9 years, 3 months ago (2011-09-23 19:10:14 UTC) #5
Ben Goodger (Google)
You should seek input primarily from the base/ OWNERS responsible for MessageLoop.
9 years, 3 months ago (2011-09-23 20:41:52 UTC) #6
oshima
+darin, evan Darin, Evan, I'd like to consolidate MessagePumpObserver interface between Win and Aura+Linux, so ...
9 years, 3 months ago (2011-09-23 20:50:46 UTC) #7
darin (slow to review)
http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h File base/message_pump_x.h (right): http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h#newcode32 base/message_pump_x.h:32: class BASE_EXPORT MessagePumpObserver { it seems like you should ...
9 years, 3 months ago (2011-09-23 20:58:45 UTC) #8
oshima
http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h File base/message_pump_x.h (right): http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h#newcode32 base/message_pump_x.h:32: class BASE_EXPORT MessagePumpObserver { On 2011/09/23 20:58:46, darin wrote: ...
9 years, 3 months ago (2011-09-23 21:12:59 UTC) #9
Evan Martin
On 2011/09/23 21:12:59, oshima wrote: > http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h > File base/message_pump_x.h (right): > > http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h#newcode32 > ...
9 years, 3 months ago (2011-09-23 21:37:35 UTC) #10
oshima
On 2011/09/23 21:37:35, Evan Martin wrote: > On 2011/09/23 21:12:59, oshima wrote: > > http://codereview.chromium.org/8021009/diff/1/base/message_pump_x.h ...
9 years, 3 months ago (2011-09-23 21:48:07 UTC) #11
oshima
This is ready for review. (I'll fix clang error in follow up CLs) I created ...
9 years, 2 months ago (2011-09-26 18:48:19 UTC) #12
darin (slow to review)
I don't think we want the concept of views in base/. On Mon, Sep 26, ...
9 years, 2 months ago (2011-09-26 19:31:00 UTC) #13
oshima
It has no dependency to views code, so it can be any name. How about ...
9 years, 2 months ago (2011-09-26 19:53:06 UTC) #14
darin (slow to review)
+1 to just calling it message_pump_observer.h I don't know why there needs to be such ...
9 years, 2 months ago (2011-09-26 20:08:30 UTC) #15
oshima
On Mon, Sep 26, 2011 at 1:08 PM, Darin Fisher <darin@chromium.org> wrote: > +1 to ...
9 years, 2 months ago (2011-09-26 20:22:27 UTC) #16
oshima
Re-sync'ed and resolved conflict with TOT. PTAL.
9 years, 2 months ago (2011-09-27 00:23:39 UTC) #17
msw
I just have some typing/naming consistency nits and opportunities to potentially share some signatures and ...
9 years, 2 months ago (2011-09-27 01:16:46 UTC) #18
oshima
This CL is already big (in terms of # of lines), so let me do ...
9 years, 2 months ago (2011-09-27 02:12:11 UTC) #19
oshima
> This CL is already big (in terms of # of lines) s/# of lines/#of ...
9 years, 2 months ago (2011-09-27 02:13:11 UTC) #20
msw
Naming and white-space nits and human-powered compiler errors. http://codereview.chromium.org/8021009/diff/26002/chrome/browser/automation/ui_controls_gtk.cc File chrome/browser/automation/ui_controls_gtk.cc (right): http://codereview.chromium.org/8021009/diff/26002/chrome/browser/automation/ui_controls_gtk.cc#newcode50 chrome/browser/automation/ui_controls_gtk.cc:50: virtual ...
9 years, 2 months ago (2011-09-27 03:51:42 UTC) #21
sadrul
I did manage to find two more nits ;) Other than the nits: LGTM http://codereview.chromium.org/8021009/diff/26002/chrome/browser/ui/views/html_dialog_view_browsertest.cc ...
9 years, 2 months ago (2011-09-27 04:13:22 UTC) #22
oshima
http://codereview.chromium.org/8021009/diff/26002/chrome/browser/automation/ui_controls_gtk.cc File chrome/browser/automation/ui_controls_gtk.cc (right): http://codereview.chromium.org/8021009/diff/26002/chrome/browser/automation/ui_controls_gtk.cc#newcode50 chrome/browser/automation/ui_controls_gtk.cc:50: virtual void DidProcessEvent(const base::NativeEvent& event) { On 2011/09/27 03:51:42, ...
9 years, 2 months ago (2011-09-27 16:39:38 UTC) #23
oshima
friendly ping. I need approval from owners for following directory. chrome/browser/ui -> ben base -> ...
9 years, 2 months ago (2011-09-28 15:17:23 UTC) #24
oshima
Brett, can you review changes under base? Thanks.
9 years, 2 months ago (2011-09-30 20:00:53 UTC) #25
oshima
Mark, Will, can one of you review base change? Both Brett and Darin are OOO.
9 years, 2 months ago (2011-09-30 20:24:36 UTC) #26
Mark Mentovai
base LGTM. Looks mostly like you’re just reorganizing in base. Darin may still want to ...
9 years, 2 months ago (2011-09-30 20:28:55 UTC) #27
oshima
On 2011/09/30 20:28:55, Mark Mentovai wrote: > base LGTM. Looks mostly like you’re just reorganizing ...
9 years, 2 months ago (2011-09-30 20:34:43 UTC) #28
Ben Goodger (Google)
http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc File views/widget/native_widget_gtk.cc (right): http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc#newcode272 views/widget/native_widget_gtk.cc:272: virtual void WillProcessEvent(GdkEvent* event) { Why are these two ...
9 years, 2 months ago (2011-09-30 20:50:50 UTC) #29
oshima
http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc File views/widget/native_widget_gtk.cc (right): http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc#newcode272 views/widget/native_widget_gtk.cc:272: virtual void WillProcessEvent(GdkEvent* event) { On 2011/09/30 20:50:51, Ben ...
9 years, 2 months ago (2011-09-30 21:17:22 UTC) #30
msw
On 2011/09/30 21:17:22, oshima wrote: > http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc > File views/widget/native_widget_gtk.cc (right): > > http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc#newcode272 > ...
9 years, 2 months ago (2011-09-30 21:32:36 UTC) #31
oshima
On 2011/09/30 21:32:36, msw wrote: > On 2011/09/30 21:17:22, oshima wrote: > > > http://codereview.chromium.org/8021009/diff/29001/views/widget/native_widget_gtk.cc ...
9 years, 2 months ago (2011-10-01 03:43:23 UTC) #32
Ben Goodger (Google)
LGTM
9 years, 2 months ago (2011-10-03 23:30:00 UTC) #33
sadrul
This seems to have broken touchui chromeos builds.
9 years, 2 months ago (2011-10-04 02:19:48 UTC) #34
oshima
9 years, 2 months ago (2011-10-04 02:35:28 UTC) #35
On 2011/10/04 02:19:48, sadrul wrote:
> This seems to have broken touchui chromeos builds.

Working on fix now

Powered by Google App Engine
This is Rietveld 408576698