OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/search_engine_dialog_controller.h" | 5 #import "chrome/browser/ui/cocoa/search_engine_dialog_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/l10n_util_mac.h" | 9 #include "app/l10n_util_mac.h" |
10 #include "app/resource_bundle.h" | |
11 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
12 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
13 #include "base/time.h" | 12 #include "base/time.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/search_engines/template_url.h" | 14 #include "chrome/browser/search_engines/template_url.h" |
16 #include "chrome/browser/search_engines/template_url_model.h" | 15 #include "chrome/browser/search_engines/template_url_model.h" |
17 #include "chrome/browser/search_engines/template_url_model_observer.h" | 16 #include "chrome/browser/search_engines/template_url_model_observer.h" |
18 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
20 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 19 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 20 #include "ui/base/resource/resource_bundle.h" |
21 | 21 |
22 // Horizontal spacing between search engine choices. | 22 // Horizontal spacing between search engine choices. |
23 const int kSearchEngineSpacing = 20; | 23 const int kSearchEngineSpacing = 20; |
24 | 24 |
25 // Vertical spacing between the search engine logo and the button underneath. | 25 // Vertical spacing between the search engine logo and the button underneath. |
26 const int kLogoButtonSpacing = 10; | 26 const int kLogoButtonSpacing = 10; |
27 | 27 |
28 // Width of a label used in place of a logo. | 28 // Width of a label used in place of a logo. |
29 const int kLogoLabelWidth = 170; | 29 const int kLogoLabelWidth = 170; |
30 | 30 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 - (NSFont*)mainLabelFont { | 275 - (NSFont*)mainLabelFont { |
276 return [NSFont boldSystemFontOfSize:13]; | 276 return [NSFont boldSystemFontOfSize:13]; |
277 } | 277 } |
278 | 278 |
279 - (IBAction)searchEngineSelected:(id)sender { | 279 - (IBAction)searchEngineSelected:(id)sender { |
280 [[self window] close]; | 280 [[self window] close]; |
281 [NSApp stopModalWithCode:[sender tag]]; | 281 [NSApp stopModalWithCode:[sender tag]]; |
282 } | 282 } |
283 | 283 |
284 @end | 284 @end |
OLD | NEW |