DescriptionMake the chevron menu button responsible for legacy overflow menu logic
Move the ChevronMenuButton class into its own file, and move the logic to show
the legacy (drop-down) extension action overflow menu from the
BrowserActionsContainer into there.
This is mainly because:
1. We'll eventually be getting rid of this legacy behavior, and this way, the
removal is all concentrated in one area (ChevronMenuButton).
2. BrowserActionsContainer is already doing a ton (since it has both new
overflow and normal logic). It doesn't need this, too.
As a bonus, refactored the lifetime of the overflow menu to be more
deterministic, and got rid of the back-and-forth between it and the
BrowserActionsContainer.
And all with a negative line count! Woohoo!
BUG=417085
Committed: https://crrev.com/4efc003eb10aba8c8189d831ec8825eb022c5b2c
Cr-Commit-Position: refs/heads/master@{#297240}
Patch Set 1 : Original filenames #
Total comments: 13
Patch Set 2 : Changed filenames #
Total comments: 3
Patch Set 3 : Finnur's and Peter's #Patch Set 4 : Latest master + comment #
Total comments: 2
Patch Set 5 : Fix scoped_ptr #Patch Set 6 : Latest master for CQ #Patch Set 7 : #
Messages
Total messages: 23 (7 generated)
|