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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 cc::switches::kBackgroundColorInsteadOfCheckerboard, | 1007 cc::switches::kBackgroundColorInsteadOfCheckerboard, |
1008 cc::switches::kCompositeToMailbox, | 1008 cc::switches::kCompositeToMailbox, |
1009 cc::switches::kDisableImplSidePainting, | 1009 cc::switches::kDisableImplSidePainting, |
1010 cc::switches::kDisableThreadedAnimation, | 1010 cc::switches::kDisableThreadedAnimation, |
1011 cc::switches::kEnableImplSidePainting, | 1011 cc::switches::kEnableImplSidePainting, |
1012 cc::switches::kEnablePartialSwap, | 1012 cc::switches::kEnablePartialSwap, |
1013 cc::switches::kEnablePerTilePainting, | 1013 cc::switches::kEnablePerTilePainting, |
1014 cc::switches::kEnablePinchVirtualViewport, | 1014 cc::switches::kEnablePinchVirtualViewport, |
1015 cc::switches::kEnableTopControlsPositionCalculation, | 1015 cc::switches::kEnableTopControlsPositionCalculation, |
1016 cc::switches::kForceDirectLayerDrawing, | 1016 cc::switches::kForceDirectLayerDrawing, |
| 1017 cc::switches::kForceSolidColorScrollbars, |
1017 cc::switches::kLowResolutionContentsScaleFactor, | 1018 cc::switches::kLowResolutionContentsScaleFactor, |
1018 cc::switches::kMaxTilesForInterestArea, | 1019 cc::switches::kMaxTilesForInterestArea, |
1019 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1020 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
1020 cc::switches::kNumRasterThreads, | 1021 cc::switches::kNumRasterThreads, |
1021 cc::switches::kShowCompositedLayerBorders, | 1022 cc::switches::kShowCompositedLayerBorders, |
1022 cc::switches::kShowFPSCounter, | 1023 cc::switches::kShowFPSCounter, |
1023 cc::switches::kShowNonOccludingRects, | 1024 cc::switches::kShowNonOccludingRects, |
1024 cc::switches::kShowOccludingRects, | 1025 cc::switches::kShowOccludingRects, |
1025 cc::switches::kShowPropertyChangedRects, | 1026 cc::switches::kShowPropertyChangedRects, |
1026 cc::switches::kShowReplicaScreenSpaceRects, | 1027 cc::switches::kShowReplicaScreenSpaceRects, |
1027 cc::switches::kShowScreenSpaceRects, | 1028 cc::switches::kShowScreenSpaceRects, |
1028 cc::switches::kShowSurfaceDamageRects, | 1029 cc::switches::kShowSurfaceDamageRects, |
1029 cc::switches::kSlowDownRasterScaleFactor, | 1030 cc::switches::kSlowDownRasterScaleFactor, |
| 1031 cc::switches::kSolidColorScrollbarColor, |
| 1032 cc::switches::kSolidColorScrollbarThickness, |
1030 cc::switches::kStrictLayerPropertyChangeChecking, | 1033 cc::switches::kStrictLayerPropertyChangeChecking, |
1031 cc::switches::kTopControlsHeight, | 1034 cc::switches::kTopControlsHeight, |
1032 cc::switches::kTopControlsHideThreshold, | 1035 cc::switches::kTopControlsHideThreshold, |
1033 cc::switches::kTopControlsShowThreshold, | 1036 cc::switches::kTopControlsShowThreshold, |
1034 cc::switches::kTraceOverdraw, | 1037 cc::switches::kTraceOverdraw, |
1035 cc::switches::kUseMapImage, | 1038 cc::switches::kUseMapImage, |
1036 }; | 1039 }; |
1037 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1040 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1038 arraysize(kSwitchNames)); | 1041 arraysize(kSwitchNames)); |
1039 | 1042 |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 // Skip widgets in other processes. | 1785 // Skip widgets in other processes. |
1783 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1786 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1784 continue; | 1787 continue; |
1785 | 1788 |
1786 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1789 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1787 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1790 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1788 } | 1791 } |
1789 } | 1792 } |
1790 | 1793 |
1791 } // namespace content | 1794 } // namespace content |
OLD | NEW |