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

Issue 8635014: DefaultDispatcher for MessagePumpX (Closed)

Created:
9 years, 1 month ago by oshima
Modified:
9 years, 1 month ago
CC:
chromium-reviews, sadrul, brettw-cc_chromium.org
Visibility:
Public.

Description

DefaultDispatcher for MessagePumpX MPX itself doesn't know how to handle events and we've been converting MessageLoop::Run() -> Desktop::Run() or RunAllPending to use ui_test_utils::RunAllPendingInMessageLoop(). It's no longer necessary with this CL. Windows's message pump can dispatch events without dispatcher. BUG=none TEST=none, but I believe some of browser_tests on aura is flaky because of this, and this CL should make them less/non flaky. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111324

Patch Set 1 #

Patch Set 2 : " #

Total comments: 4

Patch Set 3 : " #

Patch Set 4 : DeleteInstanceForTesting->DeleteInstance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -55 lines) Patch
M base/message_pump_x.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M base/message_pump_x.cc View 1 6 chunks +18 lines, -4 lines 0 comments Download
M ui/aura/desktop.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/desktop.cc View 1 2 3 5 chunks +61 lines, -44 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/aura_shell/examples/aura_shell_main.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
oshima
9 years, 1 month ago (2011-11-22 19:43:03 UTC) #1
sadrul
http://codereview.chromium.org/8635014/diff/5001/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/8635014/diff/5001/base/message_pump_x.cc#newcode117 base/message_pump_x.cc:117: DCHECK(!g_default_dispatcher || !dispatcher); Is this check necessary? Do we ...
9 years, 1 month ago (2011-11-22 20:25:55 UTC) #2
oshima
http://codereview.chromium.org/8635014/diff/5001/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/8635014/diff/5001/base/message_pump_x.cc#newcode117 base/message_pump_x.cc:117: DCHECK(!g_default_dispatcher || !dispatcher); On 2011/11/22 20:25:55, sadrul wrote: > ...
9 years, 1 month ago (2011-11-22 21:20:13 UTC) #3
sadrul
I don't feel strongly either way either (I just wanted to bring it up to ...
9 years, 1 month ago (2011-11-22 21:36:30 UTC) #4
darin (slow to review)
It occurs to me that this change makes it so that Desktop must be a ...
9 years, 1 month ago (2011-11-22 22:38:57 UTC) #5
darin (slow to review)
To be clear, my point is that since Desktop's constructor and destructor are public, one ...
9 years, 1 month ago (2011-11-22 22:39:46 UTC) #6
oshima
On 2011/11/22 22:39:46, darin wrote: > To be clear, my point is that since Desktop's ...
9 years, 1 month ago (2011-11-22 22:44:43 UTC) #7
oshima
uploaded new patch. PTAL.
9 years, 1 month ago (2011-11-22 22:50:59 UTC) #8
oshima
+ben for ui/
9 years, 1 month ago (2011-11-22 23:13:52 UTC) #9
oshima
Please hold. Fixing compilation error.
9 years, 1 month ago (2011-11-22 23:44:16 UTC) #10
oshima
uploaded new patch. PTAL
9 years, 1 month ago (2011-11-23 00:35:02 UTC) #11
Ben Goodger (Google)
LGTM for aura/shell bits.
9 years, 1 month ago (2011-11-23 01:04:11 UTC) #12
darin (slow to review)
LGTM
9 years, 1 month ago (2011-11-23 04:53:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/8635014/19007
9 years, 1 month ago (2011-11-23 05:06:54 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-23 06:59:00 UTC) #15
Change committed as 111324

Powered by Google App Engine
This is Rietveld 408576698