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

Issue 399143004: Open the WrenchMenu on mouseover when dragging a browser action (Closed)

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

Description

Open the WrenchMenu on mouseover when dragging a browser action Enable dragging from the main container to the overflow container by opening the wrench menu when hovering over the button while dragging a browser action. This also requires keeping the menu open while the drag is happening. Note: this doesn't fix drag calculations for the overflow menu. In an effort to keep these patches small, that will come later. BUG=393038 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285142

Patch Set 1 #

Total comments: 4

Patch Set 2 : dcheng's #

Patch Set 3 : Fix for drag/drop not in menu #

Total comments: 12

Patch Set 4 : Finnurs #

Total comments: 2

Patch Set 5 : Nit #

Total comments: 13

Patch Set 6 : Sky's #

Patch Set 7 : Latest master #

Patch Set 8 : Win/Test Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -83 lines) Patch
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 7 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_drag_data.h View 1 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_drag_data.cc View 1 2 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc View 1 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/menu_test_base.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/menu_test_base.cc View 1 2 3 4 5 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/menu_view_drag_and_drop_test.cc View 1 2 3 4 5 3 chunks +72 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container_observer.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.h View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc View 1 2 3 4 5 3 chunks +23 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 2 chunks +32 lines, -24 lines 0 comments Download
A chrome/browser/ui/views/toolbar/toolbar_view_interactive_uitest.cc View 1 2 3 4 5 6 7 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.h View 1 2 3 4 5 6 7 4 chunks +21 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.cc View 1 2 3 4 5 7 chunks +21 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.h View 1 2 3 4 5 2 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc View 1 2 3 4 5 6 2 chunks +68 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M ui/views/controls/menu/menu_runner.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_runner_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Devlin
Finnur, please take a look when you have a chance.
6 years, 5 months ago (2014-07-17 19:45:15 UTC) #1
dcheng
Some drive by comments. https://codereview.chromium.org/399143004/diff/1/chrome/browser/ui/views/extensions/browser_action_drag_data.cc File chrome/browser/ui/views/extensions/browser_action_drag_data.cc (right): https://codereview.chromium.org/399143004/diff/1/chrome/browser/ui/views/extensions/browser_action_drag_data.cc#newcode16 chrome/browser/ui/views/extensions/browser_action_drag_data.cc:16: const char* kClipboardFormatString = "chromium/x-browser-actions"; ...
6 years, 5 months ago (2014-07-17 19:58:03 UTC) #2
Devlin
https://codereview.chromium.org/399143004/diff/1/chrome/browser/ui/views/extensions/browser_action_drag_data.cc File chrome/browser/ui/views/extensions/browser_action_drag_data.cc (right): https://codereview.chromium.org/399143004/diff/1/chrome/browser/ui/views/extensions/browser_action_drag_data.cc#newcode16 chrome/browser/ui/views/extensions/browser_action_drag_data.cc:16: const char* kClipboardFormatString = "chromium/x-browser-actions"; On 2014/07/17 19:58:02, dcheng ...
6 years, 5 months ago (2014-07-17 20:43:35 UTC) #3
Finnur
> Note: this doesn't fix drag calculations for the overflow menu. Does that mean you ...
6 years, 5 months ago (2014-07-18 10:40:40 UTC) #4
Finnur
> Does that mean you can drag but the icon will be dropped in the ...
6 years, 5 months ago (2014-07-18 10:42:08 UTC) #5
Devlin
On 2014/07/18 10:40:40, Finnur wrote: > > Note: this doesn't fix drag calculations for the ...
6 years, 5 months ago (2014-07-18 15:44:32 UTC) #6
Finnur
LGTM, with nit. https://codereview.chromium.org/399143004/diff/40001/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): https://codereview.chromium.org/399143004/diff/40001/chrome/browser/ui/toolbar/wrench_menu_model.cc#newcode749 chrome/browser/ui/toolbar/wrench_menu_model.cc:749: if (toolbar_model->GetVisibleIconCount() != -1) Ah, yes. ...
6 years, 5 months ago (2014-07-18 15:53:51 UTC) #7
Devlin
https://codereview.chromium.org/399143004/diff/60001/chrome/browser/ui/views/toolbar/browser_action_view.h File chrome/browser/ui/views/toolbar/browser_action_view.h (right): https://codereview.chromium.org/399143004/diff/60001/chrome/browser/ui/views/toolbar/browser_action_view.h#newcode61 chrome/browser/ui/views/toolbar/browser_action_view.h:61: // wasn't removed during the drag-and-drop process (which happens ...
6 years, 5 months ago (2014-07-18 18:58:52 UTC) #8
Devlin
Scott, mind taking a look?
6 years, 5 months ago (2014-07-18 18:59:07 UTC) #9
sky
This is complex enough that you should add test coverage. https://codereview.chromium.org/399143004/diff/80001/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc File chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc (right): https://codereview.chromium.org/399143004/diff/80001/chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc#newcode71 ...
6 years, 5 months ago (2014-07-18 19:36:54 UTC) #10
Devlin
> This is complex enough that you should add test coverage. Sure - primarily for ...
6 years, 5 months ago (2014-07-18 21:38:31 UTC) #11
sky
Ideally tests to cover it all. https://codereview.chromium.org/399143004/diff/80001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/399143004/diff/80001/ui/views/controls/menu/menu_controller.cc#newcode1594 ui/views/controls/menu/menu_controller.cc:1594: state_.item->GetDelegate()->InNestedDrag()) On 2014/07/18 ...
6 years, 5 months ago (2014-07-18 22:45:40 UTC) #12
Devlin
I think this is everything. toolbar_view_interactive_uitest.cc may change slightly (need to test on Windows), but ...
6 years, 5 months ago (2014-07-21 20:00:56 UTC) #13
sky
LGTM
6 years, 5 months ago (2014-07-21 22:31:42 UTC) #14
Devlin
On 2014/07/21 22:31:42, sky wrote: > LGTM FYI, fully done with toolbar_view_interactive_uitest.cc with passing win ...
6 years, 5 months ago (2014-07-23 18:34:57 UTC) #15
sky
SLGTM
6 years, 5 months ago (2014-07-23 19:13:48 UTC) #16
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 5 months ago (2014-07-23 19:55:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/399143004/160001
6 years, 5 months ago (2014-07-23 19:57:57 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 03:31:35 UTC) #19
Message was sent while issue was closed.
Change committed as 285142

Powered by Google App Engine
This is Rietveld 408576698