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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2316303006: Make default spellchecking behavior in html elements configurable via WebSettings. (Closed)
Patch Set: make it configurable via settings Created 4 years, 3 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
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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 settings->setReportScreenSizeInPhysicalPixelsQuirk( 1135 settings->setReportScreenSizeInPhysicalPixelsQuirk(
1136 prefs.report_screen_size_in_physical_pixels_quirk); 1136 prefs.report_screen_size_in_physical_pixels_quirk);
1137 settings->setShouldReuseGlobalForUnownedMainFrame( 1137 settings->setShouldReuseGlobalForUnownedMainFrame(
1138 prefs.resue_global_for_unowned_main_frame); 1138 prefs.resue_global_for_unowned_main_frame);
1139 settings->setProgressBarCompletion( 1139 settings->setProgressBarCompletion(
1140 static_cast<WebSettings::ProgressBarCompletion>( 1140 static_cast<WebSettings::ProgressBarCompletion>(
1141 prefs.progress_bar_completion)); 1141 prefs.progress_bar_completion));
1142 settings->setPreferHiddenVolumeControls(true); 1142 settings->setPreferHiddenVolumeControls(true);
1143 WebRuntimeFeatures::enableAutoplayMutedVideos( 1143 WebRuntimeFeatures::enableAutoplayMutedVideos(
1144 prefs.autoplay_muted_videos_enabled); 1144 prefs.autoplay_muted_videos_enabled);
1145 // On Android spellchecking is off by default and opt-in by means of the
1146 // spellcheck attribute for better performance and battery saving,
1147 // see crbug.com/646901.
1148 settings->setSpellCheckEnabledByDefault(false);
1145 #endif 1149 #endif
1146 1150
1147 settings->setAutoplayExperimentMode( 1151 settings->setAutoplayExperimentMode(
1148 blink::WebString::fromUTF8(prefs.autoplay_experiment_mode)); 1152 blink::WebString::fromUTF8(prefs.autoplay_experiment_mode));
1149 1153
1150 settings->setViewportEnabled(prefs.viewport_enabled); 1154 settings->setViewportEnabled(prefs.viewport_enabled);
1151 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled); 1155 settings->setViewportMetaEnabled(prefs.viewport_meta_enabled);
1152 settings->setShrinksViewportContentToFit( 1156 settings->setShrinksViewportContentToFit(
1153 prefs.shrinks_viewport_contents_to_fit); 1157 prefs.shrinks_viewport_contents_to_fit);
1154 settings->setViewportStyle( 1158 settings->setViewportStyle(
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
3020 return render_frame->focused_pepper_plugin(); 3024 return render_frame->focused_pepper_plugin();
3021 } 3025 }
3022 frame = frame->traverseNext(false); 3026 frame = frame->traverseNext(false);
3023 } 3027 }
3024 3028
3025 return nullptr; 3029 return nullptr;
3026 } 3030 }
3027 #endif 3031 #endif
3028 3032
3029 } // namespace content 3033 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | third_party/WebKit/Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698