DescriptionAddress some TODOs for ChooserBubbleDelegate class.
This patch did the following changes:
1. Changed
ChooserBubbleDelegate::Observer::OnOptionAdded(int index)
ChooserBubbleDelegate::Observer::OnOptionRemoved(int index)
to
ChooserBubbleDelegate::Observer::OnOptionAdded(size_t index)
ChooserBubbleDelegate::Observer::OnOptionRemoved(size_t index)
2. Changed
ChooserBubbleDelegate::GetOptions()
function to two functions:
ChooserBubbleDelegate::NumOptions
ChooserBubbleDelegate::GetOption(size_t index)
to improve class encapsulation.
3. Changed
ChooserBubbleDelegate::Select(int index)
to:
ChooserBubbleDelegate::Select(size_t index)
4. For USB/Bluetooth bubble delegate class, use a vector
containing a pair of device information instead of two
vectors.
5. Changed code that uses the above functions.
BUG=492204, 535633, 535635
Committed: https://crrev.com/7d445832300217e3951ce0dd6f9f569ab4912351
Cr-Commit-Position: refs/heads/master@{#367476}
Patch Set 1 : address some TODOs for ChooserBubbleDelegate class #Patch Set 2 : merged changes from master and resolved conflicts #Patch Set 3 : merged changes from master #Patch Set 4 : removed some TODO comments #
Total comments: 6
Patch Set 5 : address reillyg@'s comments #
Total comments: 31
Patch Set 6 : address pkasting@'s comments #Patch Set 7 : fix compile error on Mac #Patch Set 8 : fix compile error on Mac again #
Total comments: 4
Patch Set 9 : updated comments #Messages
Total messages: 23 (11 generated)
|