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

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

Issue 8122010: This function no longer does anything. Remove the caller so we can delete the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <unicode/uchar.h> 7 #include <unicode/uchar.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // clicking the link should select it rather than navigate to it. 206 // clicking the link should select it rather than navigate to it.
207 // Safari uses the same default. It is unlikley an embedder would want to 207 // Safari uses the same default. It is unlikley an embedder would want to
208 // change this, since it would break existing rich text editors. 208 // change this, since it would break existing rich text editors.
209 settings->setEditableLinkBehaviorNeverLive(); 209 settings->setEditableLinkBehaviorNeverLive();
210 210
211 settings->setFrameFlatteningEnabled(frame_flattening_enabled); 211 settings->setFrameFlatteningEnabled(frame_flattening_enabled);
212 212
213 settings->setFontRenderingModeNormal(); 213 settings->setFontRenderingModeNormal();
214 settings->setJavaEnabled(java_enabled); 214 settings->setJavaEnabled(java_enabled);
215 215
216 // Turn this on to cause WebCore to paint the resize corner for us.
217 settings->setShouldPaintCustomScrollbars(true);
218
219 // By default, allow_universal_access_from_file_urls is set to false and thus 216 // By default, allow_universal_access_from_file_urls is set to false and thus
220 // we mitigate attacks from local HTML files by not granting file:// URLs 217 // we mitigate attacks from local HTML files by not granting file:// URLs
221 // universal access. Only test shell will enable this. 218 // universal access. Only test shell will enable this.
222 settings->setAllowUniversalAccessFromFileURLs( 219 settings->setAllowUniversalAccessFromFileURLs(
223 allow_universal_access_from_file_urls); 220 allow_universal_access_from_file_urls);
224 settings->setAllowFileAccessFromFileURLs(allow_file_access_from_file_urls); 221 settings->setAllowFileAccessFromFileURLs(allow_file_access_from_file_urls);
225 222
226 // We prevent WebKit from checking if it needs to add a "text direction" 223 // We prevent WebKit from checking if it needs to add a "text direction"
227 // submenu to a context menu. it is not only because we don't need the result 224 // submenu to a context menu. it is not only because we don't need the result
228 // but also because it cause a possible crash in Editor::hasBidiSelection(). 225 // but also because it cause a possible crash in Editor::hasBidiSelection().
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 settings->setFullScreenEnabled(fullscreen_enabled); 299 settings->setFullScreenEnabled(fullscreen_enabled);
303 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content); 300 settings->setAllowDisplayOfInsecureContent(allow_displaying_insecure_content);
304 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content); 301 settings->setAllowRunningOfInsecureContent(allow_running_insecure_content);
305 settings->setShouldPrintBackgrounds(should_print_backgrounds); 302 settings->setShouldPrintBackgrounds(should_print_backgrounds);
306 settings->setEnableScrollAnimator(enable_scroll_animator); 303 settings->setEnableScrollAnimator(enable_scroll_animator);
307 settings->setHixie76WebSocketProtocolEnabled( 304 settings->setHixie76WebSocketProtocolEnabled(
308 hixie76_websocket_protocol_enabled); 305 hixie76_websocket_protocol_enabled);
309 306
310 WebNetworkStateNotifier::setOnLine(is_online); 307 WebNetworkStateNotifier::setOnLine(is_online);
311 } 308 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698