Chromium Code Reviews| Index: content/browser/android/edge_effect_l.cc |
| diff --git a/content/browser/android/edge_effect_l.cc b/content/browser/android/edge_effect_l.cc |
| index 37f1cacdd02064b294f50562c92a77308097ede4..471f8bdbcafe177e685dcbd68e97908f5a5a22f3 100644 |
| --- a/content/browser/android/edge_effect_l.cc |
| +++ b/content/browser/android/edge_effect_l.cc |
| @@ -6,7 +6,7 @@ |
| #include "cc/layers/ui_resource_layer.h" |
| #include "content/browser/android/animation_utils.h" |
| -#include "ui/base/android/system_ui_resource_manager.h" |
| +#include "ui/android/resources/resource_manager.h" |
| namespace content { |
| @@ -45,7 +45,7 @@ const ui::SystemUIResourceType kResourceType = ui::OVERSCROLL_GLOW_L; |
| } // namespace |
| -EdgeEffectL::EdgeEffectL(ui::SystemUIResourceManager* resource_manager) |
| +EdgeEffectL::EdgeEffectL(ui::ResourceManager* resource_manager) |
| : resource_manager_(resource_manager), |
| glow_(cc::UIResourceLayer::Create()), |
| glow_alpha_(0), |
| @@ -234,7 +234,8 @@ void EdgeEffectL::ApplyToLayers(const gfx::SizeF& size, |
| r, std::min(1.f, glow_scale_y_) * base_glow_scale * bounds_.height()); |
| glow_->SetIsDrawable(true); |
| - glow_->SetUIResourceId(resource_manager_->GetUIResourceId(kResourceType)); |
| + glow_->SetUIResourceId(resource_manager_->GetUIResourceId( |
| + ui::ANDROID_RESOURCE_TYPE_SYSTEM, kResourceType)); |
|
jdduke (slow)
2014/12/10 19:19:27
Hmm, the |kResourceType| name is a little confusin
Jaekyun Seok (inactive)
2014/12/10 21:42:38
Done.
|
| glow_->SetTransformOrigin(gfx::Point3F(bounds_.width() * 0.5f, 0, 0)); |
| glow_->SetBounds(image_bounds); |
| glow_->SetContentsOpaque(false); |
| @@ -255,10 +256,10 @@ void EdgeEffectL::SetParent(cc::Layer* parent) { |
| } |
| // static |
| -void EdgeEffectL::PreloadResources( |
| - ui::SystemUIResourceManager* resource_manager) { |
| +void EdgeEffectL::PreloadResources(ui::ResourceManager* resource_manager) { |
| DCHECK(resource_manager); |
| - resource_manager->PreloadResource(kResourceType); |
| + resource_manager->PreloadResource(ui::ANDROID_RESOURCE_TYPE_SYSTEM, |
| + kResourceType); |
| } |
| } // namespace content |