| 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); | 471 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); |
| 472 prefs.allow_file_access_from_file_urls = | 472 prefs.allow_file_access_from_file_urls = |
| 473 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 473 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
| 474 prefs.show_composited_layer_borders = | 474 prefs.show_composited_layer_borders = |
| 475 command_line.HasSwitch(switches::kShowCompositedLayerBorders); | 475 command_line.HasSwitch(switches::kShowCompositedLayerBorders); |
| 476 prefs.show_composited_layer_tree = | 476 prefs.show_composited_layer_tree = |
| 477 command_line.HasSwitch(switches::kShowCompositedLayerTree); | 477 command_line.HasSwitch(switches::kShowCompositedLayerTree); |
| 478 prefs.show_fps_counter = | 478 prefs.show_fps_counter = |
| 479 command_line.HasSwitch(switches::kShowFPSCounter); | 479 command_line.HasSwitch(switches::kShowFPSCounter); |
| 480 prefs.accelerated_compositing_for_overflow_scroll_enabled = | 480 prefs.accelerated_compositing_for_overflow_scroll_enabled = |
| 481 command_line.HasSwitch( | 481 command_line.HasSwitch(switches::kEnableAcceleratedOverflowScroll); |
| 482 switches::kEnableAcceleratedCompositingForOverflowScroll); | 482 prefs.accelerated_compositing_for_scrollable_frames_enabled = |
| 483 command_line.HasSwitch(switches::kEnableAcceleratedScrollableFrames); |
| 483 prefs.show_paint_rects = | 484 prefs.show_paint_rects = |
| 484 command_line.HasSwitch(switches::kShowPaintRects); | 485 command_line.HasSwitch(switches::kShowPaintRects); |
| 485 prefs.render_vsync_enabled = | 486 prefs.render_vsync_enabled = |
| 486 !command_line.HasSwitch(switches::kDisableGpuVsync); | 487 !command_line.HasSwitch(switches::kDisableGpuVsync); |
| 487 prefs.accelerated_compositing_enabled = | 488 prefs.accelerated_compositing_enabled = |
| 488 GpuProcessHost::gpu_enabled() && | 489 GpuProcessHost::gpu_enabled() && |
| 489 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); | 490 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing); |
| 490 prefs.force_compositing_mode = | 491 prefs.force_compositing_mode = |
| 491 command_line.HasSwitch(switches::kForceCompositingMode) && | 492 command_line.HasSwitch(switches::kForceCompositingMode) && |
| 492 !command_line.HasSwitch(switches::kDisableForceCompositingMode); | 493 !command_line.HasSwitch(switches::kDisableForceCompositingMode); |
| (...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3393 | 3394 |
| 3394 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { | 3395 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { |
| 3395 return browser_plugin_guest_.get(); | 3396 return browser_plugin_guest_.get(); |
| 3396 } | 3397 } |
| 3397 | 3398 |
| 3398 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { | 3399 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { |
| 3399 return browser_plugin_embedder_.get(); | 3400 return browser_plugin_embedder_.get(); |
| 3400 } | 3401 } |
| 3401 | 3402 |
| 3402 } // namespace content | 3403 } // namespace content |
| OLD | NEW |