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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 settings->setShouldRespectImageOrientation( | 1044 settings->setShouldRespectImageOrientation( |
1045 prefs.should_respect_image_orientation); | 1045 prefs.should_respect_image_orientation); |
1046 | 1046 |
1047 settings->setEditingBehavior( | 1047 settings->setEditingBehavior( |
1048 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); | 1048 static_cast<WebSettings::EditingBehavior>(prefs.editing_behavior)); |
1049 | 1049 |
1050 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); | 1050 settings->setSupportsMultipleWindows(prefs.supports_multiple_windows); |
1051 | 1051 |
1052 settings->setInertVisualViewport(prefs.inert_visual_viewport); | 1052 settings->setInertVisualViewport(prefs.inert_visual_viewport); |
1053 | 1053 |
| 1054 settings->setDefaultBackgroundColor(prefs.default_background_color); |
| 1055 |
1054 settings->setMainFrameClipsContent(!prefs.record_whole_document); | 1056 settings->setMainFrameClipsContent(!prefs.record_whole_document); |
1055 | 1057 |
1056 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); | 1058 settings->setSmartInsertDeleteEnabled(prefs.smart_insert_delete_enabled); |
1057 | 1059 |
1058 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); | 1060 settings->setSpatialNavigationEnabled(prefs.spatial_navigation_enabled); |
1059 | 1061 |
1060 settings->setSelectionIncludesAltImageText(true); | 1062 settings->setSelectionIncludesAltImageText(true); |
1061 | 1063 |
1062 settings->setV8CacheOptions( | 1064 settings->setV8CacheOptions( |
1063 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); | 1065 static_cast<WebSettings::V8CacheOptions>(prefs.v8_cache_options)); |
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3101 return render_frame->focused_pepper_plugin(); | 3103 return render_frame->focused_pepper_plugin(); |
3102 } | 3104 } |
3103 frame = frame->traverseNext(false); | 3105 frame = frame->traverseNext(false); |
3104 } | 3106 } |
3105 | 3107 |
3106 return nullptr; | 3108 return nullptr; |
3107 } | 3109 } |
3108 #endif | 3110 #endif |
3109 | 3111 |
3110 } // namespace content | 3112 } // namespace content |
OLD | NEW |