| 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 #ifndef COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include "components/test_runner/test_runner_export.h" | 8 #include "components/test_runner/test_runner_export.h" |
| 9 #include "third_party/WebKit/public/platform/WebString.h" | 9 #include "third_party/WebKit/public/platform/WebString.h" |
| 10 #include "third_party/WebKit/public/platform/WebURL.h" | 10 #include "third_party/WebKit/public/platform/WebURL.h" |
| 11 #include "third_party/WebKit/public/web/WebSettings.h" | 11 #include "third_party/WebKit/public/web/WebSettings.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 class WebView; | 14 class WebView; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace test_runner { | 17 namespace test_runner { |
| 18 | 18 |
| 19 struct TEST_RUNNER_EXPORT TestPreferences { | 19 struct TEST_RUNNER_EXPORT TestPreferences { |
| 20 int default_font_size; | 20 int default_font_size; |
| 21 int minimum_font_size; | 21 int minimum_font_size; |
| 22 bool xss_auditor_enabled; | 22 bool xss_auditor_enabled; |
| 23 bool allow_display_of_insecure_content; | 23 bool allow_display_of_insecure_content; |
| 24 bool allow_file_access_from_file_urls; | 24 bool allow_file_access_from_file_urls; |
| 25 bool allow_running_of_insecure_content; | 25 bool allow_running_of_insecure_content; |
| 26 bool author_and_user_styles_enabled; | |
| 27 blink::WebString default_text_encoding_name; | 26 blink::WebString default_text_encoding_name; |
| 28 bool experimental_webgl_enabled; | 27 bool experimental_webgl_enabled; |
| 29 bool experimental_css_grid_layout_enabled; | 28 bool experimental_css_grid_layout_enabled; |
| 30 bool java_script_can_access_clipboard; | 29 bool java_script_can_access_clipboard; |
| 31 bool java_script_can_open_windows_automatically; | 30 bool java_script_can_open_windows_automatically; |
| 32 bool supports_multiple_windows; | 31 bool supports_multiple_windows; |
| 33 bool java_script_enabled; | 32 bool java_script_enabled; |
| 34 bool loads_images_automatically; | 33 bool loads_images_automatically; |
| 35 bool plugins_enabled; | 34 bool plugins_enabled; |
| 36 bool allow_universal_access_from_file_urls; | 35 bool allow_universal_access_from_file_urls; |
| 37 blink::WebSettings::EditingBehavior editing_behavior; | 36 blink::WebSettings::EditingBehavior editing_behavior; |
| 38 bool tabs_to_links; | 37 bool tabs_to_links; |
| 39 bool hyperlink_auditing_enabled; | 38 bool hyperlink_auditing_enabled; |
| 40 bool caret_browsing_enabled; | 39 bool caret_browsing_enabled; |
| 41 bool should_respect_image_orientation; | 40 bool should_respect_image_orientation; |
| 42 bool asynchronous_spell_checking_enabled; | 41 bool asynchronous_spell_checking_enabled; |
| 43 bool web_security_enabled; | 42 bool web_security_enabled; |
| 44 bool disable_reading_from_canvas; | 43 bool disable_reading_from_canvas; |
| 45 bool strict_mixed_content_checking; | 44 bool strict_mixed_content_checking; |
| 46 bool strict_powerful_feature_restrictions; | 45 bool strict_powerful_feature_restrictions; |
| 47 | 46 |
| 48 TestPreferences(); | 47 TestPreferences(); |
| 49 void Reset(); | 48 void Reset(); |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } | 51 } |
| 53 | 52 |
| 54 #endif // COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ | 53 #endif // COMPONENTS_TEST_RUNNER_TEST_PREFERENCES_H_ |
| OLD | NEW |