Commit 79e7fbec authored by juncai's avatar juncai Committed by Commit bot

Update chooser row view when mouse click down and move over rows

This CL adds code to update row view in the chooser when mouse button
is down and moves over rows.

BUG=645693

Review-Url: https://codereview.chromium.org/2382373002
Cr-Commit-Position: refs/heads/master@{#422850}
parent f69809c4
......@@ -66,6 +66,12 @@ initWithChooserDialogCocoa:(ChooserDialogCocoa*)chooserDialogCocoa
[connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0];
}
// Selection changes (while the mouse button is still down).
- (void)tableViewSelectionIsChanging:(NSNotification*)aNotification {
[chooserContentView_ updateContentRowColor];
[connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0];
}
- (void)onConnect:(id)sender {
[chooserContentView_ accept];
chooserDialogCocoa_->Dismissed();
......
......@@ -213,6 +213,12 @@ std::unique_ptr<BubbleUi> ChooserBubbleDelegate::BuildBubbleUi() {
[connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0];
}
// Selection changes (while the mouse button is still down).
- (void)tableViewSelectionIsChanging:(NSNotification*)aNotification {
[chooserContentView_ updateContentRowColor];
[connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0];
}
- (void)updateAnchorPosition {
[self setParentWindow:[self getExpectedParentWindow]];
[self setAnchorPoint:[self getExpectedAnchorPoint]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment