OLD | NEW |
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 [[self window] setInitialFirstResponder:tableView_]; | 183 [[self window] setInitialFirstResponder:tableView_]; |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
187 - (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView { | 187 - (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView { |
188 return [chooserContentView_ numberOfOptions]; | 188 return [chooserContentView_ numberOfOptions]; |
189 } | 189 } |
190 | 190 |
191 - (NSView*)tableView:(NSTableView*)tableView | 191 - (NSView*)tableView:(NSTableView*)tableView |
192 viewForTableColumn:(NSTableColumn*)tableColumn | 192 viewForTableColumn:(NSTableColumn*)tableColumn |
193 row:(NSInteger)rowIndex { | 193 row:(NSInteger)row { |
194 return [chooserContentView_ createTableRowView:rowIndex].autorelease(); | 194 return [chooserContentView_ createTableRowView:row].autorelease(); |
195 } | 195 } |
196 | 196 |
197 - (BOOL)tableView:(NSTableView*)aTableView | 197 - (BOOL)tableView:(NSTableView*)aTableView |
198 shouldEditTableColumn:(NSTableColumn*)aTableColumn | 198 shouldEditTableColumn:(NSTableColumn*)aTableColumn |
199 row:(NSInteger)rowIndex { | 199 row:(NSInteger)rowIndex { |
200 return NO; | 200 return NO; |
201 } | 201 } |
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]; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 void ChooserBubbleUiCocoa::UpdateAnchorPosition() { | 315 void ChooserBubbleUiCocoa::UpdateAnchorPosition() { |
316 if (chooser_bubble_ui_controller_) | 316 if (chooser_bubble_ui_controller_) |
317 [chooser_bubble_ui_controller_ updateAnchorPosition]; | 317 [chooser_bubble_ui_controller_ updateAnchorPosition]; |
318 } | 318 } |
319 | 319 |
320 void ChooserBubbleUiCocoa::OnBubbleClosing() { | 320 void ChooserBubbleUiCocoa::OnBubbleClosing() { |
321 chooser_bubble_ui_controller_ = nil; | 321 chooser_bubble_ui_controller_ = nil; |
322 } | 322 } |
OLD | NEW |