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

Side by Side Diff: content/public/common/web_preferences.cc

Issue 2391613002: [Android WebView] make spellcheck off by default and opt-in using spellcheck="true" attribute. (Closed)
Patch Set: move inside the #ifdef os_android block Created 4 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 | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/public/common/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.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"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 viewport_meta_layout_size_quirk(false), 199 viewport_meta_layout_size_quirk(false),
200 viewport_meta_merge_content_quirk(false), 200 viewport_meta_merge_content_quirk(false),
201 viewport_meta_non_user_scalable_quirk(false), 201 viewport_meta_non_user_scalable_quirk(false),
202 viewport_meta_zero_values_quirk(false), 202 viewport_meta_zero_values_quirk(false),
203 clobber_user_agent_initial_scale_quirk(false), 203 clobber_user_agent_initial_scale_quirk(false),
204 ignore_main_frame_overflow_hidden_quirk(false), 204 ignore_main_frame_overflow_hidden_quirk(false),
205 report_screen_size_in_physical_pixels_quirk(false), 205 report_screen_size_in_physical_pixels_quirk(false),
206 resue_global_for_unowned_main_frame(false), 206 resue_global_for_unowned_main_frame(false),
207 autoplay_muted_videos_enabled(false), 207 autoplay_muted_videos_enabled(false),
208 progress_bar_completion(ProgressBarCompletion::LOAD_EVENT), 208 progress_bar_completion(ProgressBarCompletion::LOAD_EVENT),
209 spellcheck_enabled_by_default(true),
209 #endif 210 #endif
210 #if defined(OS_ANDROID) 211 #if defined(OS_ANDROID)
211 default_minimum_page_scale_factor(0.25f), 212 default_minimum_page_scale_factor(0.25f),
212 default_maximum_page_scale_factor(5.f) 213 default_maximum_page_scale_factor(5.f)
213 #elif defined(OS_MACOSX) 214 #elif defined(OS_MACOSX)
214 default_minimum_page_scale_factor(1.f), 215 default_minimum_page_scale_factor(1.f),
215 default_maximum_page_scale_factor(3.f) 216 default_maximum_page_scale_factor(3.f)
216 #else 217 #else
217 default_minimum_page_scale_factor(1.f), 218 default_minimum_page_scale_factor(1.f),
218 default_maximum_page_scale_factor(4.f) 219 default_maximum_page_scale_factor(4.f)
219 #endif 220 #endif
220 { 221 {
221 standard_font_family_map[kCommonScript] = 222 standard_font_family_map[kCommonScript] =
222 base::ASCIIToUTF16("Times New Roman"); 223 base::ASCIIToUTF16("Times New Roman");
223 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New"); 224 fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");
224 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman"); 225 serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman");
225 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial"); 226 sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial");
226 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 227 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
227 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 228 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
228 pictograph_font_family_map[kCommonScript] = 229 pictograph_font_family_map[kCommonScript] =
229 base::ASCIIToUTF16("Times New Roman"); 230 base::ASCIIToUTF16("Times New Roman");
230 } 231 }
231 232
232 WebPreferences::WebPreferences(const WebPreferences& other) = default; 233 WebPreferences::WebPreferences(const WebPreferences& other) = default;
233 234
234 WebPreferences::~WebPreferences() { 235 WebPreferences::~WebPreferences() {
235 } 236 }
236 237
237 } // namespace content 238 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698