| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/overlay_panel_layer.h" | 5 #include "chrome/browser/android/compositor/layer/overlay_panel_layer.h" |
| 6 | 6 |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.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" |
| 11 #include "cc/resources/scoped_ui_resource.h" | 11 #include "cc/resources/scoped_ui_resource.h" |
| 12 #include "content/public/browser/android/compositor.h" | 12 #include "content/public/browser/android/compositor.h" |
| 13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/android/resources/crushed_sprite_resource.h" | |
| 15 #include "ui/android/resources/nine_patch_resource.h" | 14 #include "ui/android/resources/nine_patch_resource.h" |
| 16 #include "ui/android/resources/resource_manager.h" | 15 #include "ui/android/resources/resource_manager.h" |
| 17 #include "ui/base/l10n/l10n_util_android.h" | 16 #include "ui/base/l10n/l10n_util_android.h" |
| 18 #include "ui/gfx/color_utils.h" | 17 #include "ui/gfx/color_utils.h" |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 const SkColor kBarBackgroundColor = SkColorSetRGB(0xff, 0xff, 0xff); | 21 const SkColor kBarBackgroundColor = SkColorSetRGB(0xff, 0xff, 0xff); |
| 23 const SkColor kBarBorderColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 22 const SkColor kBarBorderColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
| 24 | 23 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 298 } |
| 300 | 299 |
| 301 OverlayPanelLayer::~OverlayPanelLayer() { | 300 OverlayPanelLayer::~OverlayPanelLayer() { |
| 302 } | 301 } |
| 303 | 302 |
| 304 scoped_refptr<cc::Layer> OverlayPanelLayer::layer() { | 303 scoped_refptr<cc::Layer> OverlayPanelLayer::layer() { |
| 305 return layer_; | 304 return layer_; |
| 306 } | 305 } |
| 307 | 306 |
| 308 } // namespace android | 307 } // namespace android |
| OLD | NEW |