OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/public/renderer/web_preferences.h" | 5 #include "content/public/renderer/web_preferences.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/public/platform/WebURL.h" | 9 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "third_party/WebKit/public/web/WebKit.h" | 10 #include "third_party/WebKit/public/web/WebKit.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 settings->setAcceleratedCompositingForScrollableFramesEnabled( | 205 settings->setAcceleratedCompositingForScrollableFramesEnabled( |
206 prefs.accelerated_compositing_for_scrollable_frames_enabled); | 206 prefs.accelerated_compositing_for_scrollable_frames_enabled); |
207 | 207 |
208 // Enables composited scrolling for frames if requested on command line. | 208 // Enables composited scrolling for frames if requested on command line. |
209 settings->setCompositedScrollingForFramesEnabled( | 209 settings->setCompositedScrollingForFramesEnabled( |
210 prefs.composited_scrolling_for_frames_enabled); | 210 prefs.composited_scrolling_for_frames_enabled); |
211 | 211 |
212 // Uses the mock theme engine for scrollbars. | 212 // Uses the mock theme engine for scrollbars. |
213 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); | 213 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); |
214 | 214 |
| 215 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled); |
| 216 |
215 settings->setThreadedHTMLParser(prefs.threaded_html_parser); | 217 settings->setThreadedHTMLParser(prefs.threaded_html_parser); |
216 | 218 |
217 // Display visualization of what has changed on the screen using an | 219 // Display visualization of what has changed on the screen using an |
218 // overlay of rects, if requested on the command line. | 220 // overlay of rects, if requested on the command line. |
219 settings->setShowPaintRects(prefs.show_paint_rects); | 221 settings->setShowPaintRects(prefs.show_paint_rects); |
220 | 222 |
221 // Enable gpu-accelerated compositing if requested on the command line. | 223 // Enable gpu-accelerated compositing if requested on the command line. |
222 settings->setAcceleratedCompositingEnabled( | 224 settings->setAcceleratedCompositingEnabled( |
223 prefs.accelerated_compositing_enabled); | 225 prefs.accelerated_compositing_enabled); |
224 | 226 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 settings->setPinchVirtualViewportEnabled( | 370 settings->setPinchVirtualViewportEnabled( |
369 prefs.pinch_virtual_viewport_enabled); | 371 prefs.pinch_virtual_viewport_enabled); |
370 | 372 |
371 settings->setPinchOverlayScrollbarThickness( | 373 settings->setPinchOverlayScrollbarThickness( |
372 prefs.pinch_overlay_scrollbar_thickness); | 374 prefs.pinch_overlay_scrollbar_thickness); |
373 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 375 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
374 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 376 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
375 } | 377 } |
376 | 378 |
377 } // namespace content | 379 } // namespace content |
OLD | NEW |