OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "chrome/browser/ui/cocoa/first_run_dialog_controller.h" | 5 #include "chrome/browser/ui/cocoa/first_run_dialog_controller.h" |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "chrome/browser/ui/cocoa/key_equivalent_constants.h" | 8 #include "chrome/browser/ui/cocoa/key_equivalent_constants.h" |
9 #include "chrome/browser/ui/cocoa/l10n_util.h" | 9 #include "chrome/browser/ui/cocoa/l10n_util.h" |
10 #include "chrome/grit/chromium_strings.h" | 10 #include "chrome/grit/chromium_strings.h" |
11 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
12 #include "components/strings/grit/components_strings.h" | |
13 #include "ui/base/cocoa/controls/button_utils.h" | 12 #include "ui/base/cocoa/controls/button_utils.h" |
14 #include "ui/base/cocoa/controls/textfield_utils.h" | 13 #include "ui/base/cocoa/controls/textfield_utils.h" |
15 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/l10n/l10n_util_mac.h" | 15 #include "ui/base/l10n/l10n_util_mac.h" |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
20 // Return the internationalized message |message_id|, with the product name | 19 // Return the internationalized message |message_id|, with the product name |
21 // substituted in for $1. | 20 // substituted in for $1. |
22 NSString* NSStringWithProductName(int message_id) { | 21 NSString* NSStringWithProductName(int message_id) { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 - (BOOL)isMakeDefaultBrowserEnabled { | 165 - (BOOL)isMakeDefaultBrowserEnabled { |
167 return [defaultBrowserCheckbox_ state] == NSOnState; | 166 return [defaultBrowserCheckbox_ state] == NSOnState; |
168 } | 167 } |
169 | 168 |
170 - (void)ok:(id)sender { | 169 - (void)ok:(id)sender { |
171 [[[self view] window] close]; | 170 [[[self view] window] close]; |
172 [NSApp stopModal]; | 171 [NSApp stopModal]; |
173 } | 172 } |
174 | 173 |
175 @end | 174 @end |
OLD | NEW |