| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 511 |
| 512 prefs.viewport_enabled = | 512 prefs.viewport_enabled = |
| 513 command_line.HasSwitch(switches::kEnableViewport) || | 513 command_line.HasSwitch(switches::kEnableViewport) || |
| 514 prefs.viewport_meta_enabled; | 514 prefs.viewport_meta_enabled; |
| 515 | 515 |
| 516 prefs.main_frame_resizes_are_orientation_changes = | 516 prefs.main_frame_resizes_are_orientation_changes = |
| 517 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); | 517 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); |
| 518 | 518 |
| 519 prefs.deferred_image_decoding_enabled = | 519 prefs.deferred_image_decoding_enabled = |
| 520 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || | 520 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || |
| 521 cc::switches::IsImplSidePaintingEnabled(); | 521 content::IsImplSidePaintingEnabled(); |
| 522 | 522 |
| 523 prefs.spatial_navigation_enabled = command_line.HasSwitch( | 523 prefs.spatial_navigation_enabled = command_line.HasSwitch( |
| 524 switches::kEnableSpatialNavigation); | 524 switches::kEnableSpatialNavigation); |
| 525 | 525 |
| 526 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs); | 526 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs); |
| 527 | 527 |
| 528 // Disable compositing in guests until we have compositing path implemented | 528 // Disable compositing in guests until we have compositing path implemented |
| 529 // for guests. | 529 // for guests. |
| 530 bool guest_compositing_enabled = !command_line.HasSwitch( | 530 bool guest_compositing_enabled = !command_line.HasSwitch( |
| 531 switches::kDisableBrowserPluginCompositing); | 531 switches::kDisableBrowserPluginCompositing); |
| (...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1967 return true; | 1967 return true; |
| 1968 } | 1968 } |
| 1969 | 1969 |
| 1970 void RenderViewHostImpl::AttachToFrameTree() { | 1970 void RenderViewHostImpl::AttachToFrameTree() { |
| 1971 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1971 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1972 | 1972 |
| 1973 frame_tree->ResetForMainFrameSwap(); | 1973 frame_tree->ResetForMainFrameSwap(); |
| 1974 } | 1974 } |
| 1975 | 1975 |
| 1976 } // namespace content | 1976 } // namespace content |
| OLD | NEW |