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

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: Forgot to add the changes to cc_messages.h 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)
aelias_OOO_until_Jul13 2012/12/19 08:31:18 I don't think we should have this block here. Ple
Ted C 2012/12/19 21:34:17 I only want to enable this in the renderer. conte
aelias_OOO_until_Jul13 2012/12/19 23:08:36 You can set it explicitly to false in the browser
Ted C 2012/12/20 00:42:38 Done
+ 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