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 "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
| 11 #include "base/message_loop.h" |
11 #include "base/sys_string_conversions.h" | 12 #include "base/sys_string_conversions.h" |
12 #include "base/time.h" | 13 #include "base/time.h" |
13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/search_engines/template_url.h" | 15 #include "chrome/browser/search_engines/template_url.h" |
15 #include "chrome/browser/search_engines/template_url_service.h" | 16 #include "chrome/browser/search_engines/template_url_service.h" |
16 #include "chrome/browser/search_engines/template_url_service_factory.h" | 17 #include "chrome/browser/search_engines/template_url_service_factory.h" |
17 #include "chrome/browser/search_engines/template_url_service_observer.h" | 18 #include "chrome/browser/search_engines/template_url_service_observer.h" |
18 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
20 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 21 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 - (NSFont*)mainLabelFont { | 285 - (NSFont*)mainLabelFont { |
285 return [NSFont boldSystemFontOfSize:13]; | 286 return [NSFont boldSystemFontOfSize:13]; |
286 } | 287 } |
287 | 288 |
288 - (IBAction)searchEngineSelected:(id)sender { | 289 - (IBAction)searchEngineSelected:(id)sender { |
289 [[self window] close]; | 290 [[self window] close]; |
290 [NSApp stopModalWithCode:[sender tag]]; | 291 [NSApp stopModalWithCode:[sender tag]]; |
291 } | 292 } |
292 | 293 |
293 @end | 294 @end |
OLD | NEW |