OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/infobars/before_translate_infobar_controller.h
" | 5 #include "chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.h
" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #import "chrome/browser/ui/cocoa/infobars/infobar_utilities.h" | 10 #import "chrome/browser/ui/cocoa/infobars/infobar_utilities.h" |
11 #include "grit/components_strings.h" | 11 #include "components/strings/grit/components_strings.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 using InfoBarUtilities::MoveControl; | 14 using InfoBarUtilities::MoveControl; |
15 using InfoBarUtilities::VerifyControlOrderAndSpacing; | 15 using InfoBarUtilities::VerifyControlOrderAndSpacing; |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 NSButton* CreateNSButtonWithResourceIDAndParameter( | 19 NSButton* CreateNSButtonWithResourceIDAndParameter( |
20 int resourceId, const base::string16& param) { | 20 int resourceId, const base::string16& param) { |
21 base::string16 title = l10n_util::GetStringFUTF16(resourceId, param); | 21 base::string16 title = l10n_util::GetStringFUTF16(resourceId, param); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 @implementation BeforeTranslateInfobarController (TestingAPI) | 130 @implementation BeforeTranslateInfobarController (TestingAPI) |
131 | 131 |
132 - (NSButton*)alwaysTranslateButton { | 132 - (NSButton*)alwaysTranslateButton { |
133 return alwaysTranslateButton_.get(); | 133 return alwaysTranslateButton_.get(); |
134 } | 134 } |
135 - (NSButton*)neverTranslateButton { | 135 - (NSButton*)neverTranslateButton { |
136 return neverTranslateButton_.get(); | 136 return neverTranslateButton_.get(); |
137 } | 137 } |
138 | 138 |
139 @end | 139 @end |
OLD | NEW |