OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/html_viewer/web_preferences.h" | 5 #include "components/html_viewer/web_preferences.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "build/build_config.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
11 #include "third_party/icu/source/common/unicode/uchar.h" | 11 #include "third_party/icu/source/common/unicode/uchar.h" |
12 | 12 |
13 namespace html_viewer { | 13 namespace html_viewer { |
14 | 14 |
15 // "Zyyy" is the ISO 15924 script code for undetermined script aka Common. | 15 // "Zyyy" is the ISO 15924 script code for undetermined script aka Common. |
16 const char kCommonScript[] = "Zyyy"; | 16 const char kCommonScript[] = "Zyyy"; |
17 | 17 |
18 WebPreferences::WebPreferences() | 18 WebPreferences::WebPreferences() |
19 : default_font_size(16), | 19 : default_font_size(16), |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); | 178 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); |
179 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); | 179 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); |
180 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); | 180 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); |
181 pictograph_font_family_map[kCommonScript] = | 181 pictograph_font_family_map[kCommonScript] = |
182 base::ASCIIToUTF16("Times New Roman"); | 182 base::ASCIIToUTF16("Times New Roman"); |
183 } | 183 } |
184 | 184 |
185 WebPreferences::~WebPreferences() {} | 185 WebPreferences::~WebPreferences() {} |
186 | 186 |
187 } // namespace html_viewer | 187 } // namespace html_viewer |
OLD | NEW |