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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java

Issue 2763883003: [Home] Use a taller progress bar (Closed)
Patch Set: fix indeterminate init Created 3 years, 9 months 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
Index: chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java
index cc5a7e118ac8896059daceaa362217b6ba30103e..70855f14578001e3ef2aa99309a987c7733afe66 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java
@@ -43,20 +43,11 @@ public class ClipDrawableProgressBar extends ImageView {
private int mDesiredVisibility;
/**
- * Interface for listening to drawing invalidation.
+ * Create the progress bar with a custom height.
+ * @param context An Android context.
+ * @param height The height in px of the progress bar.
*/
- public interface InvalidationListener {
- /**
- * Called on drawing invalidation.
- * @param dirtyRect Invalidated area.
- */
- void onInvalidation(Rect dirtyRect);
- }
-
- /**
- * Constructor for dynamic inflation.
- */
- public ClipDrawableProgressBar(Context context) {
+ public ClipDrawableProgressBar(Context context, int height) {
super(context);
mDesiredVisibility = getVisibility();
@@ -71,7 +62,6 @@ public class ClipDrawableProgressBar extends ImageView {
new ClipDrawable(mForegroundDrawable, Gravity.START, ClipDrawable.HORIZONTAL));
setBackgroundColor(mBackgroundColor);
- int height = getResources().getDimensionPixelSize(R.dimen.toolbar_progress_bar_height);
setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, height));
}
@@ -99,13 +89,6 @@ public class ClipDrawableProgressBar extends ImageView {
}
/**
- * @return Background color of this progress bar.
- */
- public int getProgressBarBackgroundColor() {
- return mBackgroundColor;
- }
-
- /**
* @return Foreground color of the progress bar.
*/
public int getForegroundColor() {

Powered by Google App Engine
This is Rietveld 408576698