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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport); | 491 prefs.viewport_enabled = command_line.HasSwitch(switches::kEnableViewport); |
492 | 492 |
493 if (delegate_ && delegate_->IsOverridingUserAgent()) | 493 if (delegate_ && delegate_->IsOverridingUserAgent()) |
494 prefs.viewport_meta_enabled = false; | 494 prefs.viewport_meta_enabled = false; |
495 | 495 |
496 prefs.main_frame_resizes_are_orientation_changes = | 496 prefs.main_frame_resizes_are_orientation_changes = |
497 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); | 497 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); |
498 | 498 |
499 prefs.color_correct_rendering_enabled = | 499 prefs.color_correct_rendering_enabled = |
500 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering); | 500 command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) || |
| 501 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering); |
| 502 |
| 503 prefs.true_color_rendering_enabled = |
| 504 command_line.HasSwitch(cc::switches::kEnableTrueColorRendering); |
501 | 505 |
502 prefs.spatial_navigation_enabled = command_line.HasSwitch( | 506 prefs.spatial_navigation_enabled = command_line.HasSwitch( |
503 switches::kEnableSpatialNavigation); | 507 switches::kEnableSpatialNavigation); |
504 | 508 |
505 prefs.disable_reading_from_canvas = command_line.HasSwitch( | 509 prefs.disable_reading_from_canvas = command_line.HasSwitch( |
506 switches::kDisableReadingFromCanvas); | 510 switches::kDisableReadingFromCanvas); |
507 | 511 |
508 prefs.strict_mixed_content_checking = command_line.HasSwitch( | 512 prefs.strict_mixed_content_checking = command_line.HasSwitch( |
509 switches::kEnableStrictMixedContentChecking); | 513 switches::kEnableStrictMixedContentChecking); |
510 | 514 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 } else { | 1083 } else { |
1080 render_view_ready_on_process_launch_ = true; | 1084 render_view_ready_on_process_launch_ = true; |
1081 } | 1085 } |
1082 } | 1086 } |
1083 | 1087 |
1084 void RenderViewHostImpl::RenderViewReady() { | 1088 void RenderViewHostImpl::RenderViewReady() { |
1085 delegate_->RenderViewReady(this); | 1089 delegate_->RenderViewReady(this); |
1086 } | 1090 } |
1087 | 1091 |
1088 } // namespace content | 1092 } // namespace content |
OLD | NEW |