| 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 prefs.accelerated_compositing_for_3d_transforms_enabled = | 530 prefs.accelerated_compositing_for_3d_transforms_enabled = |
| 531 prefs.accelerated_compositing_for_animation_enabled = | 531 prefs.accelerated_compositing_for_animation_enabled = |
| 532 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); | 532 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); |
| 533 prefs.accelerated_compositing_for_plugins_enabled = | 533 prefs.accelerated_compositing_for_plugins_enabled = |
| 534 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); | 534 !command_line.HasSwitch(switches::kDisableAcceleratedPlugins); |
| 535 prefs.accelerated_compositing_for_video_enabled = | 535 prefs.accelerated_compositing_for_video_enabled = |
| 536 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); | 536 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); |
| 537 prefs.fullscreen_enabled = | 537 prefs.fullscreen_enabled = |
| 538 !command_line.HasSwitch(switches::kDisableFullScreen); | 538 !command_line.HasSwitch(switches::kDisableFullScreen); |
| 539 prefs.css_sticky_position_enabled = | 539 prefs.css_sticky_position_enabled = |
| 540 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 540 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
| 541 prefs.css_shaders_enabled = | 541 prefs.css_shaders_enabled = |
| 542 command_line.HasSwitch(switches::kEnableCssShaders); | 542 command_line.HasSwitch(switches::kEnableCssShaders); |
| 543 prefs.css_grid_layout_enabled = | 543 prefs.css_grid_layout_enabled = |
| 544 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 544 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
| 545 prefs.lazy_layout_enabled = | 545 prefs.lazy_layout_enabled = |
| 546 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 546 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
| 547 prefs.region_based_columns_enabled = | 547 prefs.region_based_columns_enabled = |
| 548 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 548 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
| 549 prefs.threaded_html_parser = | 549 prefs.threaded_html_parser = |
| 550 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); | 550 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); |
| 551 prefs.experimental_websocket_enabled = | 551 prefs.experimental_websocket_enabled = |
| 552 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); | 552 command_line.HasSwitch(switches::kEnableExperimentalWebSocket); |
| 553 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { | 553 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { |
| 554 prefs.pinch_virtual_viewport_enabled = true; | 554 prefs.pinch_virtual_viewport_enabled = true; |
| 555 prefs.pinch_overlay_scrollbar_thickness = 10; | 555 prefs.pinch_overlay_scrollbar_thickness = 10; |
| 556 } | 556 } |
| (...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3685 } | 3685 } |
| 3686 | 3686 |
| 3687 BrowserPluginGuestManager* | 3687 BrowserPluginGuestManager* |
| 3688 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3688 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3689 return static_cast<BrowserPluginGuestManager*>( | 3689 return static_cast<BrowserPluginGuestManager*>( |
| 3690 GetBrowserContext()->GetUserData( | 3690 GetBrowserContext()->GetUserData( |
| 3691 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3691 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3692 } | 3692 } |
| 3693 | 3693 |
| 3694 } // namespace content | 3694 } // namespace content |
| OLD | NEW |