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

Unified Diff: chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc

Issue 2417323002: Move composited toolbar to bottom of screen when Chrome Home is enabled (Closed)
Patch Set: move flag to initializer list Created 4 years, 2 months 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
« no previous file with comments | « chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc
diff --git a/chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc b/chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc
index 0a68837584d2acbf5574add093ada78d00221725..efd98a01e1ba18fd3c705150fb53f50a80130c18 100644
--- a/chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc
+++ b/chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.cc
@@ -39,6 +39,7 @@ void ToolbarSceneLayer::UpdateToolbarLayer(
jint url_bar_resource_id,
jfloat url_bar_alpha,
jfloat top_offset,
+ jfloat view_height,
bool visible,
bool show_shadow) {
// If the toolbar layer has not been created yet, create it.
@@ -57,7 +58,8 @@ void ToolbarSceneLayer::UpdateToolbarLayer(
bool clip_shadow = top_offset >= 0.f && !show_shadow;
toolbar_layer_->PushResource(toolbar_resource_id, toolbar_background_color,
false, SK_ColorWHITE, url_bar_resource_id,
- url_bar_alpha, false, clip_shadow);
+ url_bar_alpha, view_height, false,
+ clip_shadow);
}
}
« no previous file with comments | « chrome/browser/android/compositor/scene_layer/toolbar_scene_layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698