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

Side by Side Diff: webkit/glue/webpreferences.cc

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webpreferences.h ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "webkit/glue/webpreferences.h" 5 #include "webkit/glue/webpreferences.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 hyperlink_auditing_enabled(true), 57 hyperlink_auditing_enabled(true),
58 user_style_sheet_enabled(false), 58 user_style_sheet_enabled(false),
59 author_and_user_styles_enabled(true), 59 author_and_user_styles_enabled(true),
60 frame_flattening_enabled(false), 60 frame_flattening_enabled(false),
61 allow_universal_access_from_file_urls(false), 61 allow_universal_access_from_file_urls(false),
62 allow_file_access_from_file_urls(false), 62 allow_file_access_from_file_urls(false),
63 webaudio_enabled(false), 63 webaudio_enabled(false),
64 experimental_webgl_enabled(false), 64 experimental_webgl_enabled(false),
65 gl_multisampling_enabled(true), 65 gl_multisampling_enabled(true),
66 show_composited_layer_borders(false), 66 show_composited_layer_borders(false),
67 asynchronous_spell_checking_enabled(true),
67 accelerated_compositing_enabled(false), 68 accelerated_compositing_enabled(false),
68 accelerated_layers_enabled(false), 69 accelerated_layers_enabled(false),
69 accelerated_video_enabled(false), 70 accelerated_video_enabled(false),
70 accelerated_2d_canvas_enabled(false), 71 accelerated_2d_canvas_enabled(false),
71 accelerated_plugins_enabled(false), 72 accelerated_plugins_enabled(false),
72 memory_info_enabled(false), 73 memory_info_enabled(false),
73 interactive_form_validation_enabled(true) { 74 interactive_form_validation_enabled(true) {
74 } 75 }
75 76
76 WebPreferences::~WebPreferences() { 77 WebPreferences::~WebPreferences() {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 settings->setAcceleratedCompositingForPluginsEnabled( 180 settings->setAcceleratedCompositingForPluginsEnabled(
180 accelerated_plugins_enabled); 181 accelerated_plugins_enabled);
181 182
182 // WebGL and accelerated 2D canvas are always gpu composited. 183 // WebGL and accelerated 2D canvas are always gpu composited.
183 settings->setAcceleratedCompositingForCanvasEnabled( 184 settings->setAcceleratedCompositingForCanvasEnabled(
184 enable_webgl || accelerated_2d_canvas_enabled); 185 enable_webgl || accelerated_2d_canvas_enabled);
185 186
186 // Enable memory info reporting to page if requested on the command line. 187 // Enable memory info reporting to page if requested on the command line.
187 settings->setMemoryInfoEnabled(memory_info_enabled); 188 settings->setMemoryInfoEnabled(memory_info_enabled);
188 189
190 settings->setAsynchronousSpellCheckingEnabled(
191 asynchronous_spell_checking_enabled);
192
189 for (WebInspectorPreferences::const_iterator it = inspector_settings.begin(); 193 for (WebInspectorPreferences::const_iterator it = inspector_settings.begin();
190 it != inspector_settings.end(); ++it) 194 it != inspector_settings.end(); ++it)
191 web_view->setInspectorSetting(WebString::fromUTF8(it->first), 195 web_view->setInspectorSetting(WebString::fromUTF8(it->first),
192 WebString::fromUTF8(it->second)); 196 WebString::fromUTF8(it->second));
193 197
194 // Tabs to link is not part of the settings. WebCore calls 198 // Tabs to link is not part of the settings. WebCore calls
195 // ChromeClient::tabsToLinks which is part of the glue code. 199 // ChromeClient::tabsToLinks which is part of the glue code.
196 web_view->setTabsToLinks(tabs_to_links); 200 web_view->setTabsToLinks(tabs_to_links);
197 201
198 settings->setInteractiveFormValidationEnabled( 202 settings->setInteractiveFormValidationEnabled(
199 interactive_form_validation_enabled); 203 interactive_form_validation_enabled);
200 } 204 }
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698