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

Unified Diff: ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java

Issue 755643004: Replace SystemUIResourceManager with ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang build failure Created 6 years 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
« no previous file with comments | « ui/android/java/res/drawable-xxxhdpi/refresh_gray.png ('k') | ui/android/resources/resource_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java
diff --git a/ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java b/ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java
index cae57f6670f4fc23a01235431a1185bb69522f02..c2990f03b077a3b041ccabba09d8ae52dd4132e9 100644
--- a/ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java
+++ b/ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java
@@ -12,6 +12,7 @@ import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.RectF;
+import org.chromium.ui.R;
import org.chromium.ui.base.SystemUIResourceType;
import org.chromium.ui.gfx.DeviceDisplayInfo;
import org.chromium.ui.resources.Resource;
@@ -52,6 +53,15 @@ public class SystemResourceLoader extends AsyncPreloadResourceLoader {
getResourceId("android:drawable/overscroll_glow"), 128, 64);
case SystemUIResourceType.OVERSCROLL_GLOW_L:
return createOverscrollGlowLBitmap(context);
+
+ // TODO(jdduke): Make refresh resources be of type ANDROID_RESOURCE_TYPE_STATIC.
+ case SystemUIResourceType.OVERSCROLL_REFRESH_IDLE:
+ return StaticResource.create(context.getResources(), R.drawable.refresh_gray, 0, 0);
+ case SystemUIResourceType.OVERSCROLL_REFRESH_ACTIVE:
+ return StaticResource.create(context.getResources(), R.drawable.refresh_blue, 0, 0);
+
+ default:
+ assert false;
}
return null;
}
@@ -90,4 +100,4 @@ public class SystemResourceLoader extends AsyncPreloadResourceLoader {
Resources systemResources = Resources.getSystem();
return systemResources.getIdentifier(name, null, null);
}
-}
+}
« no previous file with comments | « ui/android/java/res/drawable-xxxhdpi/refresh_gray.png ('k') | ui/android/resources/resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698