| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 prefs.flash_3d_enabled = | 380 prefs.flash_3d_enabled = |
| 381 GpuProcessHost::gpu_enabled() && | 381 GpuProcessHost::gpu_enabled() && |
| 382 !command_line.HasSwitch(switches::kDisableFlash3d); | 382 !command_line.HasSwitch(switches::kDisableFlash3d); |
| 383 prefs.flash_stage3d_enabled = | 383 prefs.flash_stage3d_enabled = |
| 384 GpuProcessHost::gpu_enabled() && | 384 GpuProcessHost::gpu_enabled() && |
| 385 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 385 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
| 386 prefs.flash_stage3d_baseline_enabled = | 386 prefs.flash_stage3d_baseline_enabled = |
| 387 GpuProcessHost::gpu_enabled() && | 387 GpuProcessHost::gpu_enabled() && |
| 388 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 388 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
| 389 | 389 |
| 390 prefs.gl_multisampling_enabled = | |
| 391 !command_line.HasSwitch(switches::kDisableGLMultisampling); | |
| 392 prefs.site_specific_quirks_enabled = | 390 prefs.site_specific_quirks_enabled = |
| 393 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); | 391 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); |
| 394 prefs.allow_file_access_from_file_urls = | 392 prefs.allow_file_access_from_file_urls = |
| 395 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 393 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
| 396 | 394 |
| 397 prefs.layer_squashing_enabled = true; | 395 prefs.layer_squashing_enabled = true; |
| 398 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) | 396 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) |
| 399 prefs.layer_squashing_enabled = true; | 397 prefs.layer_squashing_enabled = true; |
| 400 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) | 398 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) |
| 401 prefs.layer_squashing_enabled = false; | 399 prefs.layer_squashing_enabled = false; |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1666 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1669 | 1667 |
| 1670 frame_tree->ResetForMainFrameSwap(); | 1668 frame_tree->ResetForMainFrameSwap(); |
| 1671 } | 1669 } |
| 1672 | 1670 |
| 1673 void RenderViewHostImpl::SelectWordAroundCaret() { | 1671 void RenderViewHostImpl::SelectWordAroundCaret() { |
| 1674 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1672 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
| 1675 } | 1673 } |
| 1676 | 1674 |
| 1677 } // namespace content | 1675 } // namespace content |
| OLD | NEW |