[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / components / test_runner / test_preferences.cc
blobc34ae201a309ffeac862ecfc6817e4f4e8fa2efc
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
3 // found in the LICENSE file.
5 #include "components/test_runner/test_preferences.h"
7 #include "build/build_config.h"
9 using blink::WebSettings;
10 using blink::WebString;
12 namespace test_runner {
14 TestPreferences::TestPreferences() { Reset(); }
16 void TestPreferences::Reset() {
17 default_font_size = 16;
18 minimum_font_size = 0;
19 dom_paste_allowed = true;
20 xss_auditor_enabled = false;
21 allow_display_of_insecure_content = true;
22 allow_file_access_from_file_urls = true;
23 allow_running_of_insecure_content = true;
24 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1");
25 experimental_webgl_enabled = false;
26 experimental_css_regions_enabled = true;
27 experimental_css_grid_layout_enabled = true;
28 java_script_can_access_clipboard = true;
29 java_script_can_open_windows_automatically = true;
30 supports_multiple_windows = true;
31 java_script_enabled = true;
32 loads_images_automatically = true;
33 offline_web_application_cache_enabled = true;
34 plugins_enabled = true;
35 caret_browsing_enabled = false;
37 // Allow those layout tests running as local files, i.e. under
38 // LayoutTests/http/tests/local, to access http server.
39 allow_universal_access_from_file_urls = true;
41 #if defined(OS_MACOSX)
42 editing_behavior = WebSettings::EditingBehaviorMac;
43 #else
44 editing_behavior = WebSettings::EditingBehaviorWin;
45 #endif
47 tabs_to_links = false;
48 hyperlink_auditing_enabled = false;
49 should_respect_image_orientation = false;
50 asynchronous_spell_checking_enabled = false;
51 web_security_enabled = true;
52 disable_reading_from_canvas = false;
53 strict_mixed_content_checking = false;
54 strict_powerful_feature_restrictions = false;
57 } // namespace test_runner