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

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

Issue 1013653002: Use Courier New for Arabic monospace text on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 { prefs::kWebKitStandardFontFamilyArabic, IDS_STANDARD_FONT_FAMILY_ARABIC }, 207 { prefs::kWebKitStandardFontFamilyArabic, IDS_STANDARD_FONT_FAMILY_ARABIC },
208 { prefs::kWebKitSerifFontFamilyArabic, IDS_SERIF_FONT_FAMILY_ARABIC }, 208 { prefs::kWebKitSerifFontFamilyArabic, IDS_SERIF_FONT_FAMILY_ARABIC },
209 { prefs::kWebKitSansSerifFontFamilyArabic, 209 { prefs::kWebKitSansSerifFontFamilyArabic,
210 IDS_SANS_SERIF_FONT_FAMILY_ARABIC }, 210 IDS_SANS_SERIF_FONT_FAMILY_ARABIC },
211 { prefs::kWebKitFixedFontFamilyKorean, IDS_FIXED_FONT_FAMILY_KOREAN }, 211 { prefs::kWebKitFixedFontFamilyKorean, IDS_FIXED_FONT_FAMILY_KOREAN },
212 { prefs::kWebKitFixedFontFamilySimplifiedHan, 212 { prefs::kWebKitFixedFontFamilySimplifiedHan,
213 IDS_FIXED_FONT_FAMILY_SIMPLIFIED_HAN }, 213 IDS_FIXED_FONT_FAMILY_SIMPLIFIED_HAN },
214 { prefs::kWebKitFixedFontFamilyTraditionalHan, 214 { prefs::kWebKitFixedFontFamilyTraditionalHan,
215 IDS_FIXED_FONT_FAMILY_TRADITIONAL_HAN }, 215 IDS_FIXED_FONT_FAMILY_TRADITIONAL_HAN },
216 #elif defined(OS_WIN) 216 #elif defined(OS_WIN)
217 { prefs::kWebKitFixedFontFamilyArabic, IDS_FIXED_FONT_FAMILY_ARABIC },
217 { prefs::kWebKitSansSerifFontFamilyArabic, 218 { prefs::kWebKitSansSerifFontFamilyArabic,
218 IDS_SANS_SERIF_FONT_FAMILY_ARABIC }, 219 IDS_SANS_SERIF_FONT_FAMILY_ARABIC },
219 { prefs::kWebKitStandardFontFamilyCyrillic, 220 { prefs::kWebKitStandardFontFamilyCyrillic,
220 IDS_STANDARD_FONT_FAMILY_CYRILLIC }, 221 IDS_STANDARD_FONT_FAMILY_CYRILLIC },
221 { prefs::kWebKitFixedFontFamilyCyrillic, IDS_FIXED_FONT_FAMILY_CYRILLIC }, 222 { prefs::kWebKitFixedFontFamilyCyrillic, IDS_FIXED_FONT_FAMILY_CYRILLIC },
222 { prefs::kWebKitSerifFontFamilyCyrillic, IDS_SERIF_FONT_FAMILY_CYRILLIC }, 223 { prefs::kWebKitSerifFontFamilyCyrillic, IDS_SERIF_FONT_FAMILY_CYRILLIC },
223 { prefs::kWebKitSansSerifFontFamilyCyrillic, 224 { prefs::kWebKitSansSerifFontFamilyCyrillic,
224 IDS_SANS_SERIF_FONT_FAMILY_CYRILLIC }, 225 IDS_SANS_SERIF_FONT_FAMILY_CYRILLIC },
225 { prefs::kWebKitStandardFontFamilyGreek, IDS_STANDARD_FONT_FAMILY_GREEK }, 226 { prefs::kWebKitStandardFontFamilyGreek, IDS_STANDARD_FONT_FAMILY_GREEK },
226 { prefs::kWebKitFixedFontFamilyGreek, IDS_FIXED_FONT_FAMILY_GREEK }, 227 { prefs::kWebKitFixedFontFamilyGreek, IDS_FIXED_FONT_FAMILY_GREEK },
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 } 742 }
742 } 743 }
743 744
744 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) { 745 void PrefsTabHelper::OnWebPrefChanged(const std::string& pref_name) {
745 #if !defined(OS_ANDROID) 746 #if !defined(OS_ANDROID)
746 OnFontFamilyPrefChanged(pref_name); 747 OnFontFamilyPrefChanged(pref_name);
747 #endif 748 #endif
748 749
749 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged(); 750 web_contents_->GetRenderViewHost()->OnWebkitPreferencesChanged();
750 } 751 }
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