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

Side by Side Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 663363004: Use Segoe UI by default for Arabic sans text on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/app/resources/locale_settings_win.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/prefs/prefs_tab_helper.h" 5 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/prefs/overlay_user_pref_store.h" 9 #include "base/prefs/overlay_user_pref_store.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 { prefs::kWebKitStandardFontFamilyArabic, IDS_STANDARD_FONT_FAMILY_ARABIC }, 198 { prefs::kWebKitStandardFontFamilyArabic, IDS_STANDARD_FONT_FAMILY_ARABIC },
199 { prefs::kWebKitSerifFontFamilyArabic, IDS_SERIF_FONT_FAMILY_ARABIC }, 199 { prefs::kWebKitSerifFontFamilyArabic, IDS_SERIF_FONT_FAMILY_ARABIC },
200 { prefs::kWebKitSansSerifFontFamilyArabic, 200 { prefs::kWebKitSansSerifFontFamilyArabic,
201 IDS_SANS_SERIF_FONT_FAMILY_ARABIC }, 201 IDS_SANS_SERIF_FONT_FAMILY_ARABIC },
202 { prefs::kWebKitFixedFontFamilyKorean, IDS_FIXED_FONT_FAMILY_KOREAN }, 202 { prefs::kWebKitFixedFontFamilyKorean, IDS_FIXED_FONT_FAMILY_KOREAN },
203 { prefs::kWebKitFixedFontFamilySimplifiedHan, 203 { prefs::kWebKitFixedFontFamilySimplifiedHan,
204 IDS_FIXED_FONT_FAMILY_SIMPLIFIED_HAN }, 204 IDS_FIXED_FONT_FAMILY_SIMPLIFIED_HAN },
205 { prefs::kWebKitFixedFontFamilyTraditionalHan, 205 { prefs::kWebKitFixedFontFamilyTraditionalHan,
206 IDS_FIXED_FONT_FAMILY_TRADITIONAL_HAN }, 206 IDS_FIXED_FONT_FAMILY_TRADITIONAL_HAN },
207 #elif defined(OS_WIN) 207 #elif defined(OS_WIN)
208 { prefs::kWebKitSansSerifFontFamilyArabic,
209 IDS_SANS_SERIF_FONT_FAMILY_ARABIC },
208 { prefs::kWebKitStandardFontFamilyCyrillic, 210 { prefs::kWebKitStandardFontFamilyCyrillic,
209 IDS_STANDARD_FONT_FAMILY_CYRILLIC }, 211 IDS_STANDARD_FONT_FAMILY_CYRILLIC },
210 { prefs::kWebKitFixedFontFamilyCyrillic, IDS_FIXED_FONT_FAMILY_CYRILLIC }, 212 { prefs::kWebKitFixedFontFamilyCyrillic, IDS_FIXED_FONT_FAMILY_CYRILLIC },
211 { prefs::kWebKitSerifFontFamilyCyrillic, IDS_SERIF_FONT_FAMILY_CYRILLIC }, 213 { prefs::kWebKitSerifFontFamilyCyrillic, IDS_SERIF_FONT_FAMILY_CYRILLIC },
212 { prefs::kWebKitSansSerifFontFamilyCyrillic, 214 { prefs::kWebKitSansSerifFontFamilyCyrillic,
213 IDS_SANS_SERIF_FONT_FAMILY_CYRILLIC }, 215 IDS_SANS_SERIF_FONT_FAMILY_CYRILLIC },
214 { prefs::kWebKitStandardFontFamilyGreek, IDS_STANDARD_FONT_FAMILY_GREEK }, 216 { prefs::kWebKitStandardFontFamilyGreek, IDS_STANDARD_FONT_FAMILY_GREEK },
215 { prefs::kWebKitFixedFontFamilyGreek, IDS_FIXED_FONT_FAMILY_GREEK }, 217 { prefs::kWebKitFixedFontFamilyGreek, IDS_FIXED_FONT_FAMILY_GREEK },
216 { prefs::kWebKitSerifFontFamilyGreek, IDS_SERIF_FONT_FAMILY_GREEK }, 218 { prefs::kWebKitSerifFontFamilyGreek, IDS_SERIF_FONT_FAMILY_GREEK },
217 { prefs::kWebKitSansSerifFontFamilyGreek, IDS_SANS_SERIF_FONT_FAMILY_GREEK }, 219 { prefs::kWebKitSansSerifFontFamilyGreek, IDS_SANS_SERIF_FONT_FAMILY_GREEK },
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 } 627 }
626 } 628 }
627 629
628 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) { 630 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) {
629 #if !defined(OS_ANDROID) 631 #if !defined(OS_ANDROID)
630 OnFontFamilyPrefChanged(pref_name); 632 OnFontFamilyPrefChanged(pref_name);
631 #endif 633 #endif
632 634
633 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); 635 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged();
634 } 636 }
OLDNEW
« no previous file with comments | « chrome/app/resources/locale_settings_win.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698