| 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/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 prefs.css_sticky_position_enabled = | 525 prefs.css_sticky_position_enabled = |
| 526 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 526 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 527 prefs.css_shaders_enabled = | 527 prefs.css_shaders_enabled = |
| 528 command_line.HasSwitch(switches::kEnableCssShaders); | 528 command_line.HasSwitch(switches::kEnableCssShaders); |
| 529 prefs.css_variables_enabled = | 529 prefs.css_variables_enabled = |
| 530 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 530 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 531 prefs.css_grid_layout_enabled = | 531 prefs.css_grid_layout_enabled = |
| 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 533 prefs.record_rendering_stats = | 533 prefs.record_rendering_stats = |
| 534 command_line.HasSwitch(switches::kEnableGpuBenchmarking); | 534 command_line.HasSwitch(switches::kEnableGpuBenchmarking); |
| 535 prefs.threaded_html_parser = |
| 536 command_line.HasSwitch(switches::kEnableThreadedHTMLParser); |
| 535 | 537 |
| 536 bool touch_device_present = false; | 538 bool touch_device_present = false; |
| 537 touch_device_present = ui::IsTouchDevicePresent(); | 539 touch_device_present = ui::IsTouchDevicePresent(); |
| 538 const std::string touch_enabled_switch = | 540 const std::string touch_enabled_switch = |
| 539 command_line.HasSwitch(switches::kTouchEvents) ? | 541 command_line.HasSwitch(switches::kTouchEvents) ? |
| 540 command_line.GetSwitchValueASCII(switches::kTouchEvents) : | 542 command_line.GetSwitchValueASCII(switches::kTouchEvents) : |
| 541 switches::kTouchEventsAuto; | 543 switches::kTouchEventsAuto; |
| 542 | 544 |
| 543 if (touch_enabled_switch.empty() || | 545 if (touch_enabled_switch.empty() || |
| 544 touch_enabled_switch == switches::kTouchEventsEnabled) { | 546 touch_enabled_switch == switches::kTouchEventsEnabled) { |
| (...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3532 | 3534 |
| 3533 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { | 3535 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { |
| 3534 return browser_plugin_guest_.get(); | 3536 return browser_plugin_guest_.get(); |
| 3535 } | 3537 } |
| 3536 | 3538 |
| 3537 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { | 3539 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { |
| 3538 return browser_plugin_embedder_.get(); | 3540 return browser_plugin_embedder_.get(); |
| 3539 } | 3541 } |
| 3540 | 3542 |
| 3541 } // namespace content | 3543 } // namespace content |
| OLD | NEW |