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

Issue 324393002: Extension Toolbar redesign, part 1 (overflow) (Closed)

Created:
6 years, 6 months ago by Finnur
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Extension Toolbar redesign, part 1 (overflow) Add a flag that allows the browser action icons to overflow into the wrench menu and make sure all extensions without browser action/page action icon show at least the default icon. The overflow is implemented by introducing a master/slave mode for the BrowserActionsContainer (BAC) class. The BAC next to the Omnibox is considered the master and works as before. The BAC in inside the wrench menu is considered the slave and shows only the icons that the master does not. Known issues: - Dragging between BAC objects works, but in one direction only (from slave to master). The other way doesn't work because the wrench menu isn't a drop target for browser action icons (and doesn't open). - Context menu handling for browser action icons needs to be changed to prevent a nested messageloop when you right-click two icons in a row. - Badges on icons in the overflow container need adjusting (appear a bit too low). BUG=391280 TBR=cpu Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281291

Patch Set 1 #

Patch Set 2 : Sync #

Patch Set 3 : #

Patch Set 4 : Sync to head #

Patch Set 5 : Missing gypi change #

Patch Set 6 : Polish #

Patch Set 7 : Missing files #

Patch Set 8 : Polish #

Patch Set 9 : Ready for review #

Total comments: 31

Patch Set 10 : Review comments #

Total comments: 17

Patch Set 11 : Missing changes #

Patch Set 12 : Address review comments #

Patch Set 13 : Crash fix for Linux #

Total comments: 18

Patch Set 14 : Address Devlin's comments #

Patch Set 15 : Address Linux width issue #

Total comments: 60

Patch Set 16 : Address Peter's comments #

Total comments: 2

Patch Set 17 : gclient sync #

Patch Set 18 : Comments #

Patch Set 19 : Missing gypi change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -84 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +25 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +42 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 17 chunks +146 lines, -51 lines 0 comments Download
A chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +27 lines, -9 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/synthesize_browser_action_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handlers/synthesize_browser_action_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -0 lines 0 comments Download
M extensions/common/feature_switch.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/feature_switch.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -1 line 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Finnur
Devlin, can you review files with |extension| or |toolbar| in the path and the gypi ...
6 years, 6 months ago (2014-06-20 17:54:27 UTC) #1
Devlin
First run-through. I tried to patch this in on Linux, and sadly, it didn't work. ...
6 years, 6 months ago (2014-06-23 17:55:30 UTC) #2
Finnur
> I'm not sure if similar behavior is seen on Windows Nope, worked fine when ...
6 years, 6 months ago (2014-06-24 15:23:43 UTC) #3
Finnur
Half way through replying to the comments when I found the cause of the crash. ...
6 years, 6 months ago (2014-06-24 17:00:50 UTC) #4
Finnur
I think I've replied/changed code to address all comments. PTAL. https://codereview.chromium.org/324393002/diff/150001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/324393002/diff/150001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode270 ...
6 years, 6 months ago (2014-06-25 16:18:11 UTC) #5
Devlin
halfway through round 2. I'll finish up tomorrow morning. https://codereview.chromium.org/324393002/diff/150001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/324393002/diff/150001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode280 chrome/browser/ui/views/toolbar/browser_actions_container.cc:280: ...
6 years, 6 months ago (2014-06-26 00:04:08 UTC) #6
Finnur
All addressed, and all uploaded this time, I hope. Sorry for the confusion. :) https://codereview.chromium.org/324393002/diff/150001/chrome/browser/ui/views/toolbar/browser_actions_container.cc ...
6 years, 6 months ago (2014-06-26 12:00:44 UTC) #7
Finnur
https://codereview.chromium.org/324393002/diff/220001/chrome/browser/ui/views/toolbar/wrench_menu.cc File chrome/browser/ui/views/toolbar/wrench_menu.cc (right): https://codereview.chromium.org/324393002/diff/220001/chrome/browser/ui/views/toolbar/wrench_menu.cc#newcode1348 chrome/browser/ui/views/toolbar/wrench_menu.cc:1348: parent->CreateSubmenu(); This is what fixes your crash. The AddMenuItem ...
6 years, 6 months ago (2014-06-26 14:55:48 UTC) #8
Devlin
https://codereview.chromium.org/324393002/diff/160001/chrome/browser/ui/views/toolbar/browser_actions_container.cc File chrome/browser/ui/views/toolbar/browser_actions_container.cc (right): https://codereview.chromium.org/324393002/diff/160001/chrome/browser/ui/views/toolbar/browser_actions_container.cc#newcode348 chrome/browser/ui/views/toolbar/browser_actions_container.cc:348: view->SetVisible(true); On 2014/06/26 12:00:44, Finnur wrote: > The |view| ...
6 years, 6 months ago (2014-06-26 16:29:13 UTC) #9
Finnur
Scott: Mind taking a look? As in: An OWNERS for |views| files and file with ...
6 years, 5 months ago (2014-06-27 14:23:38 UTC) #10
Devlin
LGTM. Another thing we noticed was that badges on browser actions are wrong in the ...
6 years, 5 months ago (2014-06-27 15:19:29 UTC) #11
sky
I'm out for ~2 weeks, so I'm hesitant to start on this as no doubt ...
6 years, 5 months ago (2014-06-27 18:08:28 UTC) #12
Finnur
Thanks Scott. Enjoy your vacation. :) On Fri, Jun 27, 2014 at 6:08 PM, <sky@chromium.org> ...
6 years, 5 months ago (2014-06-27 21:53:56 UTC) #13
Peter Kasting
https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/toolbar/wrench_menu_model.cc#newcode737 chrome/browser/ui/toolbar/wrench_menu_model.cc:737: AddSeparator(ui::UPPER_SEPARATOR); Shouldn't we only add these if the overflow ...
6 years, 5 months ago (2014-06-30 23:36:34 UTC) #14
Finnur
Peter, PTAL https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/toolbar/wrench_menu_model.cc#newcode737 chrome/browser/ui/toolbar/wrench_menu_model.cc:737: AddSeparator(ui::UPPER_SEPARATOR); This experiment is behind a flag ...
6 years, 5 months ago (2014-07-02 16:59:57 UTC) #15
Peter Kasting
LGTM https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/views/toolbar/browser_actions_container.h File chrome/browser/ui/views/toolbar/browser_actions_container.h (right): https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/views/toolbar/browser_actions_container.h#newcode374 chrome/browser/ui/views/toolbar/browser_actions_container.h:374: // Whether this container is overflow container (as ...
6 years, 5 months ago (2014-07-02 20:54:01 UTC) #16
Finnur
https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/views/toolbar/browser_actions_container.h File chrome/browser/ui/views/toolbar/browser_actions_container.h (right): https://codereview.chromium.org/324393002/diff/260001/chrome/browser/ui/views/toolbar/browser_actions_container.h#newcode374 chrome/browser/ui/views/toolbar/browser_actions_container.h:374: // Whether this container is overflow container (as opposed ...
6 years, 5 months ago (2014-07-03 13:59:32 UTC) #17
Finnur
TBR-ing Carlos for OWNERS on chrome_command_ids.h.
6 years, 5 months ago (2014-07-03 14:06:40 UTC) #18
Finnur
The CQ bit was checked by finnur@chromium.org
6 years, 5 months ago (2014-07-03 14:12:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/finnur@chromium.org/324393002/340001
6 years, 5 months ago (2014-07-03 14:12:39 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-03 16:11:06 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 17:37:03 UTC) #22
Message was sent while issue was closed.
Change committed as 281291

Powered by Google App Engine
This is Rietveld 408576698