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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 command_line.HasSwitch(switches::kEnableAcceleratedFilters); | 459 command_line.HasSwitch(switches::kEnableAcceleratedFilters); |
460 prefs.deferred_filters_enabled = | 460 prefs.deferred_filters_enabled = |
461 command_line.HasSwitch(switches::kEnableDeferredFilters); | 461 command_line.HasSwitch(switches::kEnableDeferredFilters); |
462 prefs.accelerated_compositing_for_3d_transforms_enabled = | 462 prefs.accelerated_compositing_for_3d_transforms_enabled = |
463 prefs.accelerated_compositing_for_animation_enabled = | 463 prefs.accelerated_compositing_for_animation_enabled = |
464 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); | 464 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); |
465 prefs.accelerated_compositing_for_plugins_enabled = | 465 prefs.accelerated_compositing_for_plugins_enabled = |
466 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); | 466 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); |
467 prefs.accelerated_compositing_for_video_enabled = | 467 prefs.accelerated_compositing_for_video_enabled = |
468 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); | 468 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); |
469 prefs.fullscreen_enabled = | |
470 !command_line.HasSwitch(switches::kDisableFullScreen); | |
471 prefs.lazy_layout_enabled = | 469 prefs.lazy_layout_enabled = |
472 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); | 470 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
473 prefs.region_based_columns_enabled = | 471 prefs.region_based_columns_enabled = |
474 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 472 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
475 prefs.threaded_html_parser = | 473 prefs.threaded_html_parser = |
476 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); | 474 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); |
477 prefs.experimental_websocket_enabled = | 475 prefs.experimental_websocket_enabled = |
478 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); | 476 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); |
479 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { | 477 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { |
480 prefs.pinch_virtual_viewport_enabled = true; | 478 prefs.pinch_virtual_viewport_enabled = true; |
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2099 void RenderViewHostImpl::AttachToFrameTree() { | 2097 void RenderViewHostImpl::AttachToFrameTree() { |
2100 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2098 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2101 | 2099 |
2102 frame_tree->ResetForMainFrameSwap(); | 2100 frame_tree->ResetForMainFrameSwap(); |
2103 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2101 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2104 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2102 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2105 } | 2103 } |
2106 } | 2104 } |
2107 | 2105 |
2108 } // namespace content | 2106 } // namespace content |
OLD | NEW |