DescriptionUnify MenuButton Pushed state logic
CustomButton uses ShouldEnterPushedState to determine visual state changes. This uses IsTriggerableEvent, only transitioning to pushed if an activation will occur.
MenuButton has both an pushed state, showing the menu, as well as triggerable actions which do not show the menu. This change organizes the logic for activating the menu via ShouldEnterPushedState, separating it for menus from IsTriggerableEvent.
TEST=MenuButtonTest.ActivateDropDownOnMouseClick, MenuButtonTest.ActivateDropDownOnGestureTap, MenuButtonTest.DraggableMenuButtonActivatesOnRelease
BUG=398404
Committed: https://crrev.com/48bb4848bf961d8e1b744ac6b4d8275d425279fc
Cr-Commit-Position: refs/heads/master@{#301015}
Patch Set 1 #
Total comments: 4
Patch Set 2 : #
Total comments: 2
Patch Set 3 : #
Total comments: 6
Patch Set 4 : Add drag test #Patch Set 5 : Drag Drop Unittest #
Total comments: 22
Patch Set 6 : Update Formatting #
Messages
Total messages: 18 (3 generated)
|