| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file contains the definition for LayoutTestController. | 5 // This file contains the definition for LayoutTestController. |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "webkit/tools/test_shell/layout_test_controller.h" | 9 #include "webkit/tools/test_shell/layout_test_controller.h" |
| 10 | 10 |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 preferences->fantasy_font_family = CppVariantToWstring(value); | 887 preferences->fantasy_font_family = CppVariantToWstring(value); |
| 888 else if (key == "WebKitDefaultFontSize") | 888 else if (key == "WebKitDefaultFontSize") |
| 889 preferences->default_font_size = CppVariantToInt32(value); | 889 preferences->default_font_size = CppVariantToInt32(value); |
| 890 else if (key == "WebKitDefaultFixedFontSize") | 890 else if (key == "WebKitDefaultFixedFontSize") |
| 891 preferences->default_fixed_font_size = CppVariantToInt32(value); | 891 preferences->default_fixed_font_size = CppVariantToInt32(value); |
| 892 else if (key == "WebKitMinimumFontSize") | 892 else if (key == "WebKitMinimumFontSize") |
| 893 preferences->minimum_font_size = CppVariantToInt32(value); | 893 preferences->minimum_font_size = CppVariantToInt32(value); |
| 894 else if (key == "WebKitMinimumLogicalFontSize") | 894 else if (key == "WebKitMinimumLogicalFontSize") |
| 895 preferences->minimum_logical_font_size = CppVariantToInt32(value); | 895 preferences->minimum_logical_font_size = CppVariantToInt32(value); |
| 896 else if (key == "WebKitDefaultTextEncodingName") | 896 else if (key == "WebKitDefaultTextEncodingName") |
| 897 preferences->default_encoding = CppVariantToWstring(value); | 897 preferences->default_encoding = value.ToString(); |
| 898 else if (key == "WebKitJavaScriptEnabled") | 898 else if (key == "WebKitJavaScriptEnabled") |
| 899 preferences->javascript_enabled = CppVariantToBool(value); | 899 preferences->javascript_enabled = CppVariantToBool(value); |
| 900 else if (key == "WebKitWebSecurityEnabled") | 900 else if (key == "WebKitWebSecurityEnabled") |
| 901 preferences->web_security_enabled = CppVariantToBool(value); | 901 preferences->web_security_enabled = CppVariantToBool(value); |
| 902 else if (key == "WebKitJavaScriptCanOpenWindowsAutomatically") | 902 else if (key == "WebKitJavaScriptCanOpenWindowsAutomatically") |
| 903 preferences->javascript_can_open_windows_automatically = | 903 preferences->javascript_can_open_windows_automatically = |
| 904 CppVariantToBool(value); | 904 CppVariantToBool(value); |
| 905 else if (key == "WebKitDisplayImagesKey") | 905 else if (key == "WebKitDisplayImagesKey") |
| 906 preferences->loads_images_automatically = CppVariantToBool(value); | 906 preferences->loads_images_automatically = CppVariantToBool(value); |
| 907 else if (key == "WebKitPluginsEnabled") | 907 else if (key == "WebKitPluginsEnabled") |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 | 955 |
| 956 WebKit::WebURL url(GURL(args[0].ToString())); | 956 WebKit::WebURL url(GURL(args[0].ToString())); |
| 957 if (!url.isValid()) | 957 if (!url.isValid()) |
| 958 return; | 958 return; |
| 959 | 959 |
| 960 WebKit::whiteListAccessFromOrigin(url, | 960 WebKit::whiteListAccessFromOrigin(url, |
| 961 WebString::fromUTF8(args[1].ToString()), | 961 WebString::fromUTF8(args[1].ToString()), |
| 962 WebString::fromUTF8(args[2].ToString()), | 962 WebString::fromUTF8(args[2].ToString()), |
| 963 args[3].ToBoolean()); | 963 args[3].ToBoolean()); |
| 964 } | 964 } |
| OLD | NEW |