Remove PlatformFile from profile_browsertest
[chromium-blink-merge.git] / content / shell / common / test_runner / WebPreferences.cpp
blobd512e792c030372cfdfac689ea72c98c14668aac
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/common/test_runner/WebPreferences.h"
7 using namespace blink;
9 namespace WebTestRunner {
11 WebPreferences::WebPreferences()
13 reset();
16 void WebPreferences::reset()
18 defaultFontSize = 16;
19 minimumFontSize = 0;
20 DOMPasteAllowed = true;
21 XSSAuditorEnabled = false;
22 allowDisplayOfInsecureContent = true;
23 allowFileAccessFromFileURLs = true;
24 allowRunningOfInsecureContent = true;
25 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
26 experimentalWebGLEnabled = false;
27 experimentalCSSRegionsEnabled = true;
28 experimentalCSSGridLayoutEnabled = true;
29 javaEnabled = false;
30 javaScriptCanAccessClipboard = true;
31 javaScriptCanOpenWindowsAutomatically = true;
32 supportsMultipleWindows = true;
33 javaScriptEnabled = true;
34 loadsImagesAutomatically = true;
35 offlineWebApplicationCacheEnabled = true;
36 pluginsEnabled = true;
37 caretBrowsingEnabled = false;
39 // Allow those layout tests running as local files, i.e. under
40 // LayoutTests/http/tests/local, to access http server.
41 allowUniversalAccessFromFileURLs = true;
43 #ifdef __APPLE__
44 editingBehavior = WebSettings::EditingBehaviorMac;
45 #else
46 editingBehavior = WebSettings::EditingBehaviorWin;
47 #endif
49 tabsToLinks = false;
50 hyperlinkAuditingEnabled = false;
51 shouldRespectImageOrientation = false;
52 asynchronousSpellCheckingEnabled = false;