OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chooser_content_view_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/chooser_content_view_cocoa.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 [[HyperlinkButtonCell alloc] initTextCell:text]); | 401 [[HyperlinkButtonCell alloc] initTextCell:text]); |
402 [button setCell:cell.get()]; | 402 [button setCell:cell.get()]; |
403 [button sizeToFit]; | 403 [button sizeToFit]; |
404 return button; | 404 return button; |
405 } | 405 } |
406 | 406 |
407 - (NSTableView*)tableView { | 407 - (NSTableView*)tableView { |
408 return tableView_.get(); | 408 return tableView_.get(); |
409 } | 409 } |
410 | 410 |
| 411 - (SpinnerView*)spinner { |
| 412 return spinner_.get(); |
| 413 } |
| 414 |
| 415 - (NSTextField*)status { |
| 416 return status_.get(); |
| 417 } |
| 418 |
| 419 - (NSButton*)rescanButton { |
| 420 return rescanButton_.get(); |
| 421 } |
| 422 |
411 - (NSButton*)connectButton { | 423 - (NSButton*)connectButton { |
412 return connectButton_.get(); | 424 return connectButton_.get(); |
413 } | 425 } |
414 | 426 |
415 - (NSButton*)cancelButton { | 427 - (NSButton*)cancelButton { |
416 return cancelButton_.get(); | 428 return cancelButton_.get(); |
417 } | 429 } |
418 | 430 |
419 - (NSButton*)helpButton { | 431 - (NSButton*)helpButton { |
420 return helpButton_.get(); | 432 return helpButton_.get(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 472 |
461 - (void)onRescan:(id)sender { | 473 - (void)onRescan:(id)sender { |
462 chooserController_->RefreshOptions(); | 474 chooserController_->RefreshOptions(); |
463 } | 475 } |
464 | 476 |
465 - (void)onHelpPressed:(id)sender { | 477 - (void)onHelpPressed:(id)sender { |
466 chooserController_->OpenHelpCenterUrl(); | 478 chooserController_->OpenHelpCenterUrl(); |
467 } | 479 } |
468 | 480 |
469 @end | 481 @end |
OLD | NEW |