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

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

Issue 2707403004: Unify background color gutters. (Closed)
Patch Set: Rebase Created 3 years, 10 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
Index: chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc
diff --git a/chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc b/chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc
index 39179631d2e458bc477ba61cb1ecaa42eab3091d..ef171f588f832de9911d0c8deef977502d7b2a3f 100644
--- a/chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc
+++ b/chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc
@@ -318,6 +318,18 @@ scoped_refptr<TabHandleLayer> TabStripSceneLayer::GetNextLayer(
return layer_tree;
}
+bool TabStripSceneLayer::ShouldShowBackground() {
+ if (content_tree_)
+ return content_tree_->ShouldShowBackground();
+ return SceneLayer::ShouldShowBackground();
+}
+
+SkColor TabStripSceneLayer::GetBackgroundColor() {
+ if (content_tree_)
+ return content_tree_->GetBackgroundColor();
+ return SceneLayer::GetBackgroundColor();
+}
+
static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jobj) {
// This will automatically bind to the Java object and pass ownership there.
TabStripSceneLayer* scene_layer = new TabStripSceneLayer(env, jobj);

Powered by Google App Engine
This is Rietveld 408576698