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

Issue 280483003: wm: Change the DispatcherClient interface. (Closed)

Created:
6 years, 7 months ago by sadrul
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, ben+ash_chromium.org, tfarina, Andre
Visibility:
Public.

Description

wm: Change the DispatcherClient interface. Instead of having RunWithDispatcher() to start a nested message-loop, and a corresponding QuitNestedMessageLoop() to terminate it, have a DispatcherRunLoop object that is similar to base::RunLoop for starting a nested message loop for a specified DispatcherClient. BUG=none R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273634

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : tot-merge #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : fix-tests #

Total comments: 2

Patch Set 8 : . #

Patch Set 9 : tot-merge #

Patch Set 10 : . #

Patch Set 11 : self-nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -114 lines) Patch
M chrome/browser/ui/views/first_run_dialog.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/first_run_dialog.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/simple_message_box_views.cc View 1 2 3 4 5 6 7 8 6 chunks +32 lines, -28 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -9 lines 0 comments Download
M ui/views/controls/menu/menu_message_loop_aura.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_message_loop_aura.cc View 1 2 3 4 5 6 7 4 chunks +18 lines, -11 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_dispatcher_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -10 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_dispatcher_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -27 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -4 lines 0 comments Download
M ui/wm/core/nested_accelerator_controller.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -4 lines 0 comments Download
M ui/wm/core/nested_accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -12 lines 2 comments Download
M ui/wm/core/nested_accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M ui/wm/public/dispatcher_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +31 lines, -2 lines 0 comments Download
M ui/wm/public/dispatcher_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sadrul
6 years, 7 months ago (2014-05-27 02:42:06 UTC) #1
sadrul
The test failures on the bot look related to this change. I am going to ...
6 years, 7 months ago (2014-05-27 05:05:00 UTC) #2
sadrul
Tests fixed. Ready for review.
6 years, 7 months ago (2014-05-27 09:44:45 UTC) #3
sky
https://codereview.chromium.org/280483003/diff/150001/ui/wm/public/dispatcher_client.h File ui/wm/public/dispatcher_client.h (right): https://codereview.chromium.org/280483003/diff/150001/ui/wm/public/dispatcher_client.h#newcode20 ui/wm/public/dispatcher_client.h:20: base::Closure* quit_closure) = 0; It seems more natural to ...
6 years, 7 months ago (2014-05-27 17:19:37 UTC) #4
sadrul
https://codereview.chromium.org/280483003/diff/150001/ui/wm/public/dispatcher_client.h File ui/wm/public/dispatcher_client.h (right): https://codereview.chromium.org/280483003/diff/150001/ui/wm/public/dispatcher_client.h#newcode20 ui/wm/public/dispatcher_client.h:20: base::Closure* quit_closure) = 0; On 2014/05/27 17:19:38, sky wrote: ...
6 years, 7 months ago (2014-05-27 17:37:14 UTC) #5
sky
On Tue, May 27, 2014 at 10:37 AM, <sadrul@chromium.org> wrote: > > https://codereview.chromium.org/280483003/diff/150001/ui/wm/public/dispatcher_client.h > File ...
6 years, 7 months ago (2014-05-27 18:04:57 UTC) #6
sadrul
Done
6 years, 6 months ago (2014-05-28 21:22:39 UTC) #7
sky
https://codereview.chromium.org/280483003/diff/220001/ui/wm/core/nested_accelerator_controller.cc File ui/wm/core/nested_accelerator_controller.cc (right): https://codereview.chromium.org/280483003/diff/220001/ui/wm/core/nested_accelerator_controller.cc#newcode37 ui/wm/core/nested_accelerator_controller.cc:37: run_loop->QuitClosure()); This is more of what I was thinking, ...
6 years, 6 months ago (2014-05-28 23:11:12 UTC) #8
sadrul
https://codereview.chromium.org/280483003/diff/220001/ui/wm/core/nested_accelerator_controller.cc File ui/wm/core/nested_accelerator_controller.cc (right): https://codereview.chromium.org/280483003/diff/220001/ui/wm/core/nested_accelerator_controller.cc#newcode37 ui/wm/core/nested_accelerator_controller.cc:37: run_loop->QuitClosure()); On 2014/05/28 23:11:12, sky wrote: > This is ...
6 years, 6 months ago (2014-05-29 00:25:38 UTC) #9
sky
On Wed, May 28, 2014 at 5:25 PM, <sadrul@chromium.org> wrote: > > https://codereview.chromium.org/280483003/diff/220001/ui/wm/core/nested_accelerator_controller.cc > File ...
6 years, 6 months ago (2014-05-29 14:50:39 UTC) #10
sadrul
On 2014/05/29 14:50:39, sky wrote: > On Wed, May 28, 2014 at 5:25 PM, <mailto:sadrul@chromium.org> ...
6 years, 6 months ago (2014-05-29 19:01:54 UTC) #11
sky
One more proposal. Make DispatcherRunLoop pure virtual with DispatcherClient vending the appropriate instance. This way ...
6 years, 6 months ago (2014-05-29 19:35:11 UTC) #12
sadrul
On 2014/05/29 19:35:11, sky wrote: > One more proposal. Make DispatcherRunLoop pure virtual with > ...
6 years, 6 months ago (2014-05-29 20:03:50 UTC) #13
sky
Fair enough, what you have it is. LGTM
6 years, 6 months ago (2014-05-29 20:51:42 UTC) #14
sadrul
6 years, 6 months ago (2014-05-29 22:49:04 UTC) #15
Message was sent while issue was closed.
Committed patchset #11 manually as r273634 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698