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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 prefs.flash_3d_enabled = | 370 prefs.flash_3d_enabled = |
371 GpuProcessHost::gpu_enabled() && | 371 GpuProcessHost::gpu_enabled() && |
372 !command_line.HasSwitch(switches::kDisableFlash3d); | 372 !command_line.HasSwitch(switches::kDisableFlash3d); |
373 prefs.flash_stage3d_enabled = | 373 prefs.flash_stage3d_enabled = |
374 GpuProcessHost::gpu_enabled() && | 374 GpuProcessHost::gpu_enabled() && |
375 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 375 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
376 prefs.flash_stage3d_baseline_enabled = | 376 prefs.flash_stage3d_baseline_enabled = |
377 GpuProcessHost::gpu_enabled() && | 377 GpuProcessHost::gpu_enabled() && |
378 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 378 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
379 | 379 |
380 prefs.site_specific_quirks_enabled = | |
381 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); | |
382 prefs.allow_file_access_from_file_urls = | 380 prefs.allow_file_access_from_file_urls = |
383 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 381 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
384 | 382 |
385 prefs.layer_squashing_enabled = true; | 383 prefs.layer_squashing_enabled = true; |
386 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) | 384 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) |
387 prefs.layer_squashing_enabled = true; | 385 prefs.layer_squashing_enabled = true; |
388 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) | 386 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) |
389 prefs.layer_squashing_enabled = false; | 387 prefs.layer_squashing_enabled = false; |
390 | 388 |
391 prefs.accelerated_2d_canvas_enabled = | 389 prefs.accelerated_2d_canvas_enabled = |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1565 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1568 | 1566 |
1569 frame_tree->ResetForMainFrameSwap(); | 1567 frame_tree->ResetForMainFrameSwap(); |
1570 } | 1568 } |
1571 | 1569 |
1572 void RenderViewHostImpl::SelectWordAroundCaret() { | 1570 void RenderViewHostImpl::SelectWordAroundCaret() { |
1573 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1571 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1574 } | 1572 } |
1575 | 1573 |
1576 } // namespace content | 1574 } // namespace content |
OLD | NEW |