OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 settings->setDefaultTextEncodingName( | 985 settings->setDefaultTextEncodingName( |
986 base::ASCIIToUTF16(prefs.default_encoding)); | 986 base::ASCIIToUTF16(prefs.default_encoding)); |
987 settings->setJavaScriptEnabled(prefs.javascript_enabled); | 987 settings->setJavaScriptEnabled(prefs.javascript_enabled); |
988 settings->setWebSecurityEnabled(prefs.web_security_enabled); | 988 settings->setWebSecurityEnabled(prefs.web_security_enabled); |
989 settings->setJavaScriptCanOpenWindowsAutomatically( | 989 settings->setJavaScriptCanOpenWindowsAutomatically( |
990 prefs.javascript_can_open_windows_automatically); | 990 prefs.javascript_can_open_windows_automatically); |
991 settings->setLoadsImagesAutomatically(prefs.loads_images_automatically); | 991 settings->setLoadsImagesAutomatically(prefs.loads_images_automatically); |
992 settings->setImagesEnabled(prefs.images_enabled); | 992 settings->setImagesEnabled(prefs.images_enabled); |
993 settings->setPluginsEnabled(prefs.plugins_enabled); | 993 settings->setPluginsEnabled(prefs.plugins_enabled); |
994 settings->setDOMPasteAllowed(prefs.dom_paste_enabled); | 994 settings->setDOMPasteAllowed(prefs.dom_paste_enabled); |
995 settings->setNeedsSiteSpecificQuirks(prefs.site_specific_quirks_enabled); | |
996 settings->setShrinksStandaloneImagesToFit( | 995 settings->setShrinksStandaloneImagesToFit( |
997 prefs.shrinks_standalone_images_to_fit); | 996 prefs.shrinks_standalone_images_to_fit); |
998 settings->setUsesEncodingDetector(prefs.uses_universal_detector); | 997 settings->setUsesEncodingDetector(prefs.uses_universal_detector); |
999 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable); | 998 settings->setTextAreasAreResizable(prefs.text_areas_are_resizable); |
1000 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); | 999 settings->setAllowScriptsToCloseWindows(prefs.allow_scripts_to_close_windows); |
1001 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); | 1000 settings->setDownloadableBinaryFontsEnabled(prefs.remote_fonts_enabled); |
1002 settings->setJavaScriptCanAccessClipboard( | 1001 settings->setJavaScriptCanAccessClipboard( |
1003 prefs.javascript_can_access_clipboard); | 1002 prefs.javascript_can_access_clipboard); |
1004 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); | 1003 WebRuntimeFeatures::enableXSLT(prefs.xslt_enabled); |
1005 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); | 1004 settings->setXSSAuditorEnabled(prefs.xss_auditor_enabled); |
(...skipping 3311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4317 std::vector<gfx::Size> sizes; | 4316 std::vector<gfx::Size> sizes; |
4318 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4317 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4319 if (!url.isEmpty()) | 4318 if (!url.isEmpty()) |
4320 urls.push_back( | 4319 urls.push_back( |
4321 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4320 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4322 } | 4321 } |
4323 SendUpdateFaviconURL(urls); | 4322 SendUpdateFaviconURL(urls); |
4324 } | 4323 } |
4325 | 4324 |
4326 } // namespace content | 4325 } // namespace content |
OLD | NEW |