| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 prefs.fullscreen_enabled = | 529 prefs.fullscreen_enabled = |
| 530 !command_line.HasSwitch(switches::kDisableFullScreen); | 530 !command_line.HasSwitch(switches::kDisableFullScreen); |
| 531 prefs.css_sticky_position_enabled = | 531 prefs.css_sticky_position_enabled = |
| 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 533 prefs.css_shaders_enabled = | 533 prefs.css_shaders_enabled = |
| 534 command_line.HasSwitch(switches::kEnableCssShaders); | 534 command_line.HasSwitch(switches::kEnableCssShaders); |
| 535 prefs.css_variables_enabled = | 535 prefs.css_variables_enabled = |
| 536 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 536 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 537 prefs.css_grid_layout_enabled = | 537 prefs.css_grid_layout_enabled = |
| 538 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); | 538 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); |
| 539 prefs.record_rendering_stats = |
| 540 command_line.HasSwitch(switches::kEnableGpuBenchmarking); |
| 539 | 541 |
| 540 bool touch_device_present = false; | 542 bool touch_device_present = false; |
| 541 #if defined(USE_AURA) && defined(USE_X11) | 543 #if defined(USE_AURA) && defined(USE_X11) |
| 542 touch_device_present = | 544 touch_device_present = |
| 543 ui::TouchFactory::GetInstance()->IsTouchDevicePresent(); | 545 ui::TouchFactory::GetInstance()->IsTouchDevicePresent(); |
| 544 #endif | 546 #endif |
| 545 #if defined(OS_WIN) | 547 #if defined(OS_WIN) |
| 546 touch_device_present = ui::IsTouchDevicePresent(); | 548 touch_device_present = ui::IsTouchDevicePresent(); |
| 547 #endif | 549 #endif |
| 548 #if defined(OS_ANDROID) | 550 #if defined(OS_ANDROID) |
| (...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3459 | 3461 |
| 3460 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { | 3462 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { |
| 3461 return browser_plugin_guest_.get(); | 3463 return browser_plugin_guest_.get(); |
| 3462 } | 3464 } |
| 3463 | 3465 |
| 3464 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { | 3466 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { |
| 3465 return browser_plugin_embedder_.get(); | 3467 return browser_plugin_embedder_.get(); |
| 3466 } | 3468 } |
| 3467 | 3469 |
| 3468 } // namespace content | 3470 } // namespace content |
| OLD | NEW |