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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 403 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
404 prefs.antialiased_2d_canvas_disabled = | 404 prefs.antialiased_2d_canvas_disabled = |
405 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 405 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
406 prefs.accelerated_2d_canvas_msaa_sample_count = | 406 prefs.accelerated_2d_canvas_msaa_sample_count = |
407 atoi(command_line.GetSwitchValueASCII( | 407 atoi(command_line.GetSwitchValueASCII( |
408 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 408 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
409 prefs.deferred_filters_enabled = | 409 prefs.deferred_filters_enabled = |
410 !command_line.HasSwitch(switches::kDisableDeferredFilters); | 410 !command_line.HasSwitch(switches::kDisableDeferredFilters); |
411 prefs.container_culling_enabled = | 411 prefs.container_culling_enabled = |
412 command_line.HasSwitch(switches::kEnableContainerCulling); | 412 command_line.HasSwitch(switches::kEnableContainerCulling); |
413 prefs.lazy_layout_enabled = | |
414 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); | |
415 prefs.region_based_columns_enabled = | 413 prefs.region_based_columns_enabled = |
416 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 414 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
417 | 415 |
418 if (IsPinchVirtualViewportEnabled()) { | 416 if (IsPinchVirtualViewportEnabled()) { |
419 prefs.pinch_virtual_viewport_enabled = true; | 417 prefs.pinch_virtual_viewport_enabled = true; |
420 prefs.pinch_overlay_scrollbar_thickness = 10; | 418 prefs.pinch_overlay_scrollbar_thickness = 10; |
421 } | 419 } |
422 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled(); | 420 prefs.use_solid_color_scrollbars = ui::IsOverlayScrollbarEnabled(); |
423 | 421 |
424 #if defined(OS_ANDROID) | 422 #if defined(OS_ANDROID) |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1673 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1676 | 1674 |
1677 frame_tree->ResetForMainFrameSwap(); | 1675 frame_tree->ResetForMainFrameSwap(); |
1678 } | 1676 } |
1679 | 1677 |
1680 void RenderViewHostImpl::SelectWordAroundCaret() { | 1678 void RenderViewHostImpl::SelectWordAroundCaret() { |
1681 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1679 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1682 } | 1680 } |
1683 | 1681 |
1684 } // namespace content | 1682 } // namespace content |
OLD | NEW |