DescriptionAdd flag to TableView to control if selection is automatically updated
when the selected item is removed.
This patch added a member variable select_on_remove_ to TableView
to control if selection is automatically updated when the selected item is
removed. This is useful for permission chooser which uses TableView, since
when user chooses an item to grant permission, if that selected item is
then removed from the list, there should be no item automatically selected
to grant permission before user makes another choice.
BUG=492204
Committed: https://crrev.com/9d1653ef4155ed241f01c5aa7ff2203a561dc4c7
Cr-Commit-Position: refs/heads/master@{#357918}
Patch Set 1 : added a member variable move_selection_on_removal_ to TableView #
Total comments: 2
Patch Set 2 : use set_select_on_remove function to set the variable #Patch Set 3 : updated test function names #
Total comments: 2
Patch Set 4 : removed some test code #
Total comments: 2
Patch Set 5 : use nullptr instead of NULL #
Messages
Total messages: 21 (6 generated)
|