OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/android/compositor/layer/toolbar_layer.h" | 5 #include "chrome/browser/android/compositor/layer/toolbar_layer.h" |
6 | 6 |
7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
8 #include "cc/layers/nine_patch_layer.h" | 8 #include "cc/layers/nine_patch_layer.h" |
9 #include "cc/layers/solid_color_layer.h" | 9 #include "cc/layers/solid_color_layer.h" |
10 #include "cc/layers/ui_resource_layer.h" | 10 #include "cc/layers/ui_resource_layer.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 progress_bar_layer_->SetHideLayerAndSubtree(true); | 186 progress_bar_layer_->SetHideLayerAndSubtree(true); |
187 toolbar_root_->AddChild(progress_bar_layer_); | 187 toolbar_root_->AddChild(progress_bar_layer_); |
188 | 188 |
189 anonymize_layer_->SetIsDrawable(true); | 189 anonymize_layer_->SetIsDrawable(true); |
190 anonymize_layer_->SetBackgroundColor(SK_ColorWHITE); | 190 anonymize_layer_->SetBackgroundColor(SK_ColorWHITE); |
191 toolbar_root_->AddChild(anonymize_layer_); | 191 toolbar_root_->AddChild(anonymize_layer_); |
192 | 192 |
193 debug_layer_->SetIsDrawable(true); | 193 debug_layer_->SetIsDrawable(true); |
194 debug_layer_->SetBackgroundColor(SK_ColorGREEN); | 194 debug_layer_->SetBackgroundColor(SK_ColorGREEN); |
195 debug_layer_->SetOpacity(0.5f); | 195 debug_layer_->SetOpacity(0.5f); |
| 196 |
| 197 |
| 198 is_chrome_home_enabled_ = |
| 199 base::FeatureList::IsEnabled(chrome::android::kChromeHomeFeature); |
196 } | 200 } |
197 | 201 |
198 ToolbarLayer::~ToolbarLayer() { | 202 ToolbarLayer::~ToolbarLayer() { |
199 } | 203 } |
200 | 204 |
201 } // namespace android | 205 } // namespace android |
OLD | NEW |