OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/cocoa/font_language_settings_controller.h" | 5 #import "chrome/browser/cocoa/font_language_settings_controller.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #import "base/mac_util.h" | 8 #import "base/mac_util.h" |
9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "chrome/browser/character_encoding.h" | 10 #include "chrome/browser/character_encoding.h" |
| 11 #include "chrome/browser/fonts_languages_window.h" |
11 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
12 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
13 #include "chrome/common/pref_service.h" | 14 #include "chrome/common/pref_service.h" |
14 | 15 |
15 NSString* const kCharacterInfoEncoding = @"encoding"; | 16 NSString* const kCharacterInfoEncoding = @"encoding"; |
16 NSString* const kCharacterInfoName = @"name"; | 17 NSString* const kCharacterInfoName = @"name"; |
17 NSString* const kCharacterInfoID = @"id"; | 18 NSString* const kCharacterInfoID = @"id"; |
18 | 19 |
| 20 void ShowFontsLanguagesWindow(gfx::NativeWindow window, |
| 21 FontsLanguagesPage page, |
| 22 Profile* profile) { |
| 23 NOTIMPLEMENTED(); |
| 24 } |
| 25 |
19 @interface FontLanguageSettingsController (Private) | 26 @interface FontLanguageSettingsController (Private) |
20 - (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font; | 27 - (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font; |
21 @end | 28 @end |
22 | 29 |
23 @implementation FontLanguageSettingsController | 30 @implementation FontLanguageSettingsController |
24 | 31 |
25 - (id)initWithProfile:(Profile*)profile { | 32 - (id)initWithProfile:(Profile*)profile { |
26 DCHECK(profile); | 33 DCHECK(profile); |
27 NSString* nibpath = [mac_util::MainAppBundle() | 34 NSString* nibpath = [mac_util::MainAppBundle() |
28 pathForResource:@"FontLanguageSettings" | 35 pathForResource:@"FontLanguageSettings" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // user "(null)". | 240 // user "(null)". |
234 return; | 241 return; |
235 } | 242 } |
236 [field setFont:font]; | 243 [field setFont:font]; |
237 NSString* value = | 244 NSString* value = |
238 [NSString stringWithFormat:@"%@, %g", [font fontName], [font pointSize]]; | 245 [NSString stringWithFormat:@"%@, %g", [font fontName], [font pointSize]]; |
239 [field setStringValue:value]; | 246 [field setStringValue:value]; |
240 } | 247 } |
241 | 248 |
242 @end | 249 @end |
OLD | NEW |