Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11552009: Add support for calculating the position of the top controls in the cc layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some unnecessary bits after addressing comments. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index fe8c24a415e248ea4b2dda477b2f06e9e8ab2553..9bf1697884942b11835fa6a205207b3bc0147a25 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -846,6 +846,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
cc::switches::kShowNonOccludingRects,
cc::switches::kShowOccludingRects,
cc::switches::kTraceOverdraw,
+ cc::switches::kTopControlsHeight,
};
renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
arraysize(kSwitchNames));
@@ -858,6 +859,13 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging);
#endif
}
+
+#if defined(OS_ANDROID)
+ if (!browser_cmd.HasSwitch(switches::kDisableFullScreen)) {
+ renderer_cmd->AppendSwitch(
+ cc::switches::kEnableTopControlsPositionCalculation);
+ }
+#endif
}
base::ProcessHandle RenderProcessHostImpl::GetHandle() {

Powered by Google App Engine
This is Rietveld 408576698