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

Issue 279073002: views: Terminate the nested message-loop correctly. (Closed)

Created:
6 years, 7 months ago by sadrul
Modified:
6 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

views: Terminate the nested message-loop correctly when closing the menu. It is possible for a non-menu source to start a nested message loop (e.g. for dragging a menu-item). So attempting to terminate the current iteration of the message-loop when the menu is closed can be problematic. So instead, terminate the message-loop through the DispatcherClient. BUG=367850, 372208 R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269819

Patch Set 1 #

Patch Set 2 : windows? #

Patch Set 3 : test #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -83 lines) Patch
M ui/views/controls/menu/menu_controller.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 chunk +11 lines, -9 lines 0 comments Download
A ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 1 chunk +153 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_event_dispatcher_linux.cc View 1 chunk +38 lines, -24 lines 0 comments Download
M ui/views/controls/menu/menu_message_pump_dispatcher_win.cc View 1 1 chunk +60 lines, -49 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sadrul
I have follow-up cleanups in https://codereview.chromium.org/274383002/ and https://codereview.chromium.org/280483003. This particular change may need to be ...
6 years, 7 months ago (2014-05-12 04:40:06 UTC) #1
sky
LGTM
6 years, 7 months ago (2014-05-12 15:47:01 UTC) #2
sadrul
6 years, 7 months ago (2014-05-12 18:15:08 UTC) #3
Message was sent while issue was closed.
Committed patchset #6 manually as r269819 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698