Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/ui/cocoa/search_engine_dialog_controller.mm

Issue 6541031: Integrate gfx::Image into the ResourceBundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search_engines/template_url.h" 13 #include "chrome/browser/search_engines/template_url.h"
14 #include "chrome/browser/search_engines/template_url_model.h" 14 #include "chrome/browser/search_engines/template_url_model.h"
15 #include "chrome/browser/search_engines/template_url_model_observer.h" 15 #include "chrome/browser/search_engines/template_url_model_observer.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
18 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 18 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
19 #include "ui/base/l10n/l10n_util_mac.h" 19 #include "ui/base/l10n/l10n_util_mac.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/gfx/image.h"
21 22
22 // Horizontal spacing between search engine choices. 23 // Horizontal spacing between search engine choices.
23 const int kSearchEngineSpacing = 20; 24 const int kSearchEngineSpacing = 20;
24 25
25 // Vertical spacing between the search engine logo and the button underneath. 26 // Vertical spacing between the search engine logo and the button underneath.
26 const int kLogoButtonSpacing = 10; 27 const int kLogoButtonSpacing = 10;
27 28
28 // Width of a label used in place of a logo. 29 // Width of a label used in place of a logo.
29 const int kLogoLabelWidth = 170; 30 const int kLogoLabelWidth = 170;
30 31
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 - (NSFont*)mainLabelFont { 276 - (NSFont*)mainLabelFont {
276 return [NSFont boldSystemFontOfSize:13]; 277 return [NSFont boldSystemFontOfSize:13];
277 } 278 }
278 279
279 - (IBAction)searchEngineSelected:(id)sender { 280 - (IBAction)searchEngineSelected:(id)sender {
280 [[self window] close]; 281 [[self window] close];
281 [NSApp stopModalWithCode:[sender tag]]; 282 [NSApp stopModalWithCode:[sender tag]];
282 } 283 }
283 284
284 @end 285 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698