| 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 "cc/layers/solid_color_layer.h" | 7 #include "cc/layers/solid_color_layer.h" |
| 8 #include "cc/layers/ui_resource_layer.h" | 8 #include "cc/layers/ui_resource_layer.h" |
| 9 #include "cc/resources/scoped_ui_resource.h" |
| 9 #include "content/public/browser/android/compositor.h" | 10 #include "content/public/browser/android/compositor.h" |
| 10 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
| 11 #include "ui/android/resources/resource_manager.h" | 12 #include "ui/android/resources/resource_manager.h" |
| 12 #include "ui/android/resources/ui_resource_android.h" | |
| 13 | 13 |
| 14 namespace chrome { | 14 namespace chrome { |
| 15 namespace android { | 15 namespace android { |
| 16 | 16 |
| 17 // static | 17 // static |
| 18 scoped_refptr<ToolbarLayer> ToolbarLayer::Create() { | 18 scoped_refptr<ToolbarLayer> ToolbarLayer::Create() { |
| 19 return make_scoped_refptr(new ToolbarLayer()); | 19 return make_scoped_refptr(new ToolbarLayer()); |
| 20 } | 20 } |
| 21 | 21 |
| 22 scoped_refptr<cc::Layer> ToolbarLayer::layer() { | 22 scoped_refptr<cc::Layer> ToolbarLayer::layer() { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 debug_layer_->SetIsDrawable(true); | 126 debug_layer_->SetIsDrawable(true); |
| 127 debug_layer_->SetBackgroundColor(SK_ColorGREEN); | 127 debug_layer_->SetBackgroundColor(SK_ColorGREEN); |
| 128 debug_layer_->SetOpacity(0.5f); | 128 debug_layer_->SetOpacity(0.5f); |
| 129 } | 129 } |
| 130 | 130 |
| 131 ToolbarLayer::~ToolbarLayer() { | 131 ToolbarLayer::~ToolbarLayer() { |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace android | 134 } // namespace android |
| 135 } // namespace chrome | 135 } // namespace chrome |
| OLD | NEW |