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 !command_line.HasSwitch(switches::kDisableFlash3d); | 380 !command_line.HasSwitch(switches::kDisableFlash3d); |
381 prefs.flash_stage3d_enabled = | 381 prefs.flash_stage3d_enabled = |
382 GpuProcessHost::gpu_enabled() && | 382 GpuProcessHost::gpu_enabled() && |
383 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 383 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
384 prefs.flash_stage3d_baseline_enabled = | 384 prefs.flash_stage3d_baseline_enabled = |
385 GpuProcessHost::gpu_enabled() && | 385 GpuProcessHost::gpu_enabled() && |
386 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 386 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
387 | 387 |
388 prefs.gl_multisampling_enabled = | 388 prefs.gl_multisampling_enabled = |
389 !command_line.HasSwitch(switches::kDisableGLMultisampling); | 389 !command_line.HasSwitch(switches::kDisableGLMultisampling); |
390 prefs.privileged_webgl_extensions_enabled = | |
391 command_line.HasSwitch(switches::kEnablePrivilegedWebGLExtensions); | |
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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1683 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1686 | 1684 |
1687 frame_tree->ResetForMainFrameSwap(); | 1685 frame_tree->ResetForMainFrameSwap(); |
1688 } | 1686 } |
1689 | 1687 |
1690 void RenderViewHostImpl::SelectWordAroundCaret() { | 1688 void RenderViewHostImpl::SelectWordAroundCaret() { |
1691 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1689 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1692 } | 1690 } |
1693 | 1691 |
1694 } // namespace content | 1692 } // namespace content |
OLD | NEW |