| 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.h" | 5 #import "chrome/browser/ui/cocoa/chooser_content_view_cocoa.h" |
| 6 | 6 |
| 7 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" | 7 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 10 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" | 10 #import "ui/base/cocoa/controls/hyperlink_button_cell.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/base/l10n/l10n_util_mac.h" | 12 #include "ui/base/l10n/l10n_util_mac.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 const CGFloat kVerticalPadding = 10.0f; | 29 const CGFloat kVerticalPadding = 10.0f; |
| 30 | 30 |
| 31 // Separator alpha value. | 31 // Separator alpha value. |
| 32 const CGFloat kSeparatorAlphaValue = 0.6f; | 32 const CGFloat kSeparatorAlphaValue = 0.6f; |
| 33 | 33 |
| 34 // Separator height. | 34 // Separator height. |
| 35 const CGFloat kSeparatorHeight = 1.0f; | 35 const CGFloat kSeparatorHeight = 1.0f; |
| 36 | 36 |
| 37 } // namespace | 37 } // namespace |
| 38 | 38 |
| 39 @implementation ChooserContentView | 39 @implementation ChooserContentViewCocoa |
| 40 | 40 |
| 41 - (instancetype)initWithChooserTitle:(NSString*)chooserTitle { | 41 - (instancetype)initWithChooserTitle:(NSString*)chooserTitle { |
| 42 // ------------------------------------ | 42 // ------------------------------------ |
| 43 // | Chooser title | | 43 // | Chooser title | |
| 44 // | -------------------------------- | | 44 // | -------------------------------- | |
| 45 // | | option 0 | | | 45 // | | option 0 | | |
| 46 // | | option 1 | | | 46 // | | option 1 | | |
| 47 // | | option 2 | | | 47 // | | option 2 | | |
| 48 // | | | | | 48 // | | | | |
| 49 // | | | | | 49 // | | | | |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 - (NSButton*)cancelButton { | 244 - (NSButton*)cancelButton { |
| 245 return cancelButton_.get(); | 245 return cancelButton_.get(); |
| 246 } | 246 } |
| 247 | 247 |
| 248 - (NSButton*)helpButton { | 248 - (NSButton*)helpButton { |
| 249 return helpButton_.get(); | 249 return helpButton_.get(); |
| 250 } | 250 } |
| 251 | 251 |
| 252 @end | 252 @end |
| OLD | NEW |