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

Issue 378333003: Allow menus to stay open during a child view's drag and drop (Closed)

Created:
6 years, 5 months ago by Devlin
Modified:
6 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow a menu to stay open when a child View (not a MenuItemView) is doing a drag-and-drop operation. We need this in order to allow the wrench menu to stay open during browser action drag-and-drop when the extension action redesign switch is enabled. BUG=393038 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283656

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 11

Patch Set 4 : Sky's #

Patch Set 5 : #

Total comments: 18

Patch Set 6 : #

Patch Set 7 : Test Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+540 lines, -11 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/views/menu_view_drag_and_drop_test.cc View 1 2 3 4 5 6 1 chunk +442 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 4 chunks +18 lines, -10 lines 0 comments Download
M ui/views/controls/menu/menu_delegate.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_host.h View 1 2 3 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_host.cc View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Devlin
Scott, please take a look. This is obviously incomplete (there's no adjusted calculations for dragging, ...
6 years, 5 months ago (2014-07-09 15:47:47 UTC) #1
sky
https://codereview.chromium.org/378333003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/378333003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode468 chrome/browser/ui/views/toolbar/browser_actions_container.cc:468: if (in_overflow_mode()) { This is too fragile. The menu ...
6 years, 5 months ago (2014-07-09 16:09:16 UTC) #2
Devlin
https://codereview.chromium.org/378333003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/378333003/diff/1/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode468 chrome/browser/ui/views/toolbar/browser_actions_container.cc:468: if (in_overflow_mode()) { On 2014/07/09 16:09:16, sky wrote: > ...
6 years, 5 months ago (2014-07-09 18:03:41 UTC) #3
Devlin
https://codereview.chromium.org/378333003/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/378333003/diff/20001/ui/views/widget/widget.cc#newcode795 ui/views/widget/widget.cc:795: GetTopLevelWidget()->set_child_drag_in_progress(false); This still has the problem that, since capture ...
6 years, 5 months ago (2014-07-09 18:28:44 UTC) #4
sky
https://codereview.chromium.org/378333003/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/378333003/diff/20001/ui/views/widget/widget.cc#newcode791 ui/views/widget/widget.cc:791: GetTopLevelWidget()->set_child_drag_in_progress(true); You shouldn't need a new field to determine ...
6 years, 5 months ago (2014-07-10 15:05:00 UTC) #5
Devlin
Sorry about having so many questions on this one... still a views newbie. Hopefully subsequent ...
6 years, 5 months ago (2014-07-10 15:33:00 UTC) #6
Devlin
On 2014/07/10 15:33:00, Devlin wrote: > Sorry about having so many questions on this one... ...
6 years, 5 months ago (2014-07-10 20:16:40 UTC) #7
sky
https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc#newcode115 ui/views/controls/menu/menu_host.cc:115: !dragged_view()) { Document why we check dragged_view(). I also ...
6 years, 5 months ago (2014-07-11 17:45:34 UTC) #8
Devlin
https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc#newcode115 ui/views/controls/menu/menu_host.cc:115: !dragged_view()) { On 2014/07/11 17:45:33, sky wrote: > Document ...
6 years, 5 months ago (2014-07-11 18:43:51 UTC) #9
sky
https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc#newcode115 ui/views/controls/menu/menu_host.cc:115: !dragged_view()) { On 2014/07/11 18:43:51, Devlin wrote: > On ...
6 years, 5 months ago (2014-07-11 19:15:20 UTC) #10
Devlin
https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc File ui/views/controls/menu/menu_host.cc (right): https://codereview.chromium.org/378333003/diff/40001/ui/views/controls/menu/menu_host.cc#newcode142 ui/views/controls/menu/menu_host.cc:142: // During a view's drag, we may have lost ...
6 years, 5 months ago (2014-07-11 20:28:15 UTC) #11
sky
You also need to add test coverage, which means an interactive ui test. The existing ...
6 years, 5 months ago (2014-07-14 15:19:05 UTC) #12
Devlin
Still working on the test - drag and drop seems to be a difficult area, ...
6 years, 5 months ago (2014-07-16 16:00:45 UTC) #13
sky
I didn't look at your test as you said it's still a work in the ...
6 years, 5 months ago (2014-07-16 19:19:01 UTC) #14
Devlin
On 2014/07/16 19:19:01, sky wrote: > I didn't look at your test as you said ...
6 years, 5 months ago (2014-07-16 19:42:51 UTC) #15
sky
LGTM
6 years, 5 months ago (2014-07-16 21:16:50 UTC) #16
Devlin
On 2014/07/16 21:16:50, sky wrote: > LGTM Thanks for all your help on this one. ...
6 years, 5 months ago (2014-07-16 21:31:07 UTC) #17
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 5 months ago (2014-07-16 21:32:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/378333003/170001
6 years, 5 months ago (2014-07-16 21:33:44 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 06:17:42 UTC) #20
Message was sent while issue was closed.
Change committed as 283656

Powered by Google App Engine
This is Rietveld 408576698