OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "components/test_runner/test_preferences.h" | 5 #include "components/test_runner/test_preferences.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 using blink::WebSettings; | 9 using blink::WebSettings; |
10 using blink::WebString; | 10 using blink::WebString; |
11 | 11 |
12 namespace test_runner { | 12 namespace test_runner { |
13 | 13 |
14 TestPreferences::TestPreferences() { Reset(); } | 14 TestPreferences::TestPreferences() { Reset(); } |
15 | 15 |
16 void TestPreferences::Reset() { | 16 void TestPreferences::Reset() { |
17 default_font_size = 16; | 17 default_font_size = 16; |
18 minimum_font_size = 0; | 18 minimum_font_size = 0; |
19 xss_auditor_enabled = false; | 19 xss_auditor_enabled = false; |
20 allow_display_of_insecure_content = true; | |
21 allow_file_access_from_file_urls = true; | 20 allow_file_access_from_file_urls = true; |
22 allow_running_of_insecure_content = true; | 21 allow_running_of_insecure_content = true; |
23 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); | 22 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); |
24 experimental_webgl_enabled = false; | 23 experimental_webgl_enabled = false; |
25 experimental_css_grid_layout_enabled = true; | 24 experimental_css_grid_layout_enabled = true; |
26 java_script_can_access_clipboard = true; | 25 java_script_can_access_clipboard = true; |
27 java_script_can_open_windows_automatically = true; | 26 java_script_can_open_windows_automatically = true; |
28 supports_multiple_windows = true; | 27 supports_multiple_windows = true; |
29 java_script_enabled = true; | 28 java_script_enabled = true; |
30 loads_images_automatically = true; | 29 loads_images_automatically = true; |
(...skipping 15 matching lines...) Expand all Loading... |
46 should_respect_image_orientation = false; | 45 should_respect_image_orientation = false; |
47 asynchronous_spell_checking_enabled = false; | 46 asynchronous_spell_checking_enabled = false; |
48 web_security_enabled = true; | 47 web_security_enabled = true; |
49 disable_reading_from_canvas = false; | 48 disable_reading_from_canvas = false; |
50 strict_mixed_content_checking = false; | 49 strict_mixed_content_checking = false; |
51 strict_powerful_feature_restrictions = false; | 50 strict_powerful_feature_restrictions = false; |
52 spatial_navigation_enabled = false; | 51 spatial_navigation_enabled = false; |
53 } | 52 } |
54 | 53 |
55 } // namespace test_runner | 54 } // namespace test_runner |
OLD | NEW |