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

Unified Diff: ui/android/java/src/org/chromium/ui/autofill/AutofillDividerDrawable.java

Issue 231953003: Show Ash like <select> popup on Android tablets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newpopupx
Patch Set: Introduce DropdownPopupWindow Created 6 years, 8 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: ui/android/java/src/org/chromium/ui/autofill/AutofillDividerDrawable.java
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillDividerDrawable.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillDividerDrawable.java
deleted file mode 100644
index 9aa88e8af8fee9acd67d317b9409b168aa6caea2..0000000000000000000000000000000000000000
--- a/ui/android/java/src/org/chromium/ui/autofill/AutofillDividerDrawable.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.ui.autofill;
-
-import android.graphics.Canvas;
-import android.graphics.ColorFilter;
-import android.graphics.Paint;
-import android.graphics.PixelFormat;
-import android.graphics.Rect;
-import android.graphics.drawable.Drawable;
-
-class AutofillDividerDrawable extends Drawable {
-
- private Paint mPaint;
- private Rect mDividerRect;
-
- public AutofillDividerDrawable() {
- mPaint = new Paint();
- mDividerRect = new Rect();
- }
-
- @Override
- public void draw(Canvas canvas) {
- canvas.drawRect(mDividerRect, mPaint);
- }
-
- @Override
- public void onBoundsChange(Rect bounds) {
- mDividerRect.set(0, 0, bounds.width(), mDividerRect.height());
- }
-
- public void setHeight(int height) {
- mDividerRect.set(0, 0, mDividerRect.right, height);
- }
-
- public void setColor(int color) {
- mPaint.setColor(color);
- }
-
- @Override
- public void setAlpha(int alpha) {
- }
-
- @Override
- public void setColorFilter(ColorFilter cf) {
- }
-
- @Override
- public int getOpacity() {
- return PixelFormat.OPAQUE;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698