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

Unified Diff: chrome/browser/android/compositor/layer/tab_layer.cc

Issue 2569893002: Do not show tab title when it is not needed (Closed)
Patch Set: remove extra new line Created 4 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: chrome/browser/android/compositor/layer/tab_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_layer.cc b/chrome/browser/android/compositor/layer/tab_layer.cc
index 578a0b83a22f144aa32866b15be71929fc3d659a..d513901f246b702b6eed7a51ab3f41f2b74c2bea 100644
--- a/chrome/browser/android/compositor/layer/tab_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_layer.cc
@@ -136,6 +136,7 @@ void TabLayer::SetProperties(int id,
int toolbar_background_color,
int close_button_color,
bool anonymize_toolbar,
+ bool show_tab_title,
int toolbar_textbox_resource_id,
int toolbar_textbox_background_color,
float toolbar_textbox_alpha,
@@ -387,7 +388,7 @@ void TabLayer::SetProperties(int id,
bool content_visible = desired_content_size.GetArea() > 0.f;
// TODO(dtrainor): Improve these calculations to prune these layers out.
- bool title_visible = border_alpha > 0.f && !back_visible;
+ bool title_visible = border_alpha > 0.f && !back_visible && show_tab_title;
bool close_btn_visible = title_visible;
bool toolbar_visible = show_toolbar && toolbar_alpha > 0.f && !back_visible;

Powered by Google App Engine
This is Rietveld 408576698