| 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() {
|
|
|