Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm

Issue 2380903002: Revert of Update image and text color when row is selected in the chooser on Mac (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.h" 5 #import "chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 - (CGFloat)tableView:(NSTableView*)tableView heightOfRow:(NSInteger)row { 203 - (CGFloat)tableView:(NSTableView*)tableView heightOfRow:(NSInteger)row {
204 return [chooserContentView_ tableRowViewHeight:row]; 204 return [chooserContentView_ tableRowViewHeight:row];
205 } 205 }
206 206
207 - (void)updateTableView { 207 - (void)updateTableView {
208 [chooserContentView_ updateTableView]; 208 [chooserContentView_ updateTableView];
209 } 209 }
210 210
211 - (void)tableViewSelectionDidChange:(NSNotification*)aNotification { 211 - (void)tableViewSelectionDidChange:(NSNotification*)aNotification {
212 [chooserContentView_ updateContentRowColor];
213 [connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0]; 212 [connectButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0];
214 } 213 }
215 214
216 - (void)updateAnchorPosition { 215 - (void)updateAnchorPosition {
217 [self setParentWindow:[self getExpectedParentWindow]]; 216 [self setParentWindow:[self getExpectedParentWindow]];
218 [self setAnchorPoint:[self getExpectedAnchorPoint]]; 217 [self setAnchorPoint:[self getExpectedAnchorPoint]];
219 } 218 }
220 219
221 - (NSPoint)getExpectedAnchorPoint { 220 - (NSPoint)getExpectedAnchorPoint {
222 NSPoint anchor; 221 NSPoint anchor;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 315 }
317 316
318 void ChooserBubbleUiCocoa::UpdateAnchorPosition() { 317 void ChooserBubbleUiCocoa::UpdateAnchorPosition() {
319 if (chooser_bubble_ui_controller_) 318 if (chooser_bubble_ui_controller_)
320 [chooser_bubble_ui_controller_ updateAnchorPosition]; 319 [chooser_bubble_ui_controller_ updateAnchorPosition];
321 } 320 }
322 321
323 void ChooserBubbleUiCocoa::OnBubbleClosing() { 322 void ChooserBubbleUiCocoa::OnBubbleClosing() {
324 chooser_bubble_ui_controller_ = nil; 323 chooser_bubble_ui_controller_ = nil;
325 } 324 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698