| 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" |
| 11 #include "chrome/browser/chooser_controller/chooser_controller.h" |
| 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" | 12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" |
| 12 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "components/chooser_controller/chooser_controller.h" | |
| 14 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 14 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 15 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 15 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 16 #include "ui/base/l10n/l10n_util_mac.h" | 16 #include "ui/base/l10n/l10n_util_mac.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Chooser width. | 20 // Chooser width. |
| 21 const CGFloat kChooserWidth = 320.0f; | 21 const CGFloat kChooserWidth = 320.0f; |
| 22 | 22 |
| 23 // Chooser height. | 23 // Chooser height. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 - (void)close { | 362 - (void)close { |
| 363 chooserController_->Close(); | 363 chooserController_->Close(); |
| 364 } | 364 } |
| 365 | 365 |
| 366 - (void)onHelpPressed:(id)sender { | 366 - (void)onHelpPressed:(id)sender { |
| 367 chooserController_->OpenHelpCenterUrl(); | 367 chooserController_->OpenHelpCenterUrl(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 @end | 370 @end |
| OLD | NEW |