summaryrefslogtreecommitdiffstats
path: root/ui/android
diff options
context:
space:
mode:
authoraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 22:02:34 +0000
committeraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-02 22:02:34 +0000
commitd122cfbfac5f51d322042d2d5d531b51e07f3d2b (patch)
tree57024fe64ce1d601591edbd6deec9ed396d2cfa4 /ui/android
parentdc3655978522565626b88a329d5e2b2ea0ef515b (diff)
downloadchromium_src-d122cfbfac5f51d322042d2d5d531b51e07f3d2b.zip
chromium_src-d122cfbfac5f51d322042d2d5d531b51e07f3d2b.tar.gz
chromium_src-d122cfbfac5f51d322042d2d5d531b51e07f3d2b.tar.bz2
[Android] Add AutofillPopup to AutofillDialog.
Add AutofillPopup support to AutofillDialog. The same AutofillPopup code is now used for web pages and AutofillDialog. BUG=222743 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/14253011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/android')
-rw-r--r--ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java23
1 files changed, 13 insertions, 10 deletions
diff --git a/ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java b/ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java
index c6855a1..531dce8 100644
--- a/ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java
+++ b/ui/android/java/src/org/chromium/ui/ViewAndroidDelegate.java
@@ -7,25 +7,28 @@ package org.chromium.ui;
import android.view.View;
/**
- * Interface to add and remove views from the implementing view.
+ * Interface to acquire and release anchor views from the implementing View.
*/
public interface ViewAndroidDelegate {
/**
- * Add the view.
- * @param view The view to be added.
+ * @return An anchor view that can be used to anchor decoration views like Autofill popup.
*/
- void addViewToContainerView(View view);
+ View acquireAnchorView();
/**
- * Remove the view if it is present, otherwise do nothing.
- * @param view The view to be removed.
+ * Set the anchor view to specified position and width (all units in dp).
+ * @param view The anchor view that needs to be positioned.
+ * @param x X coordinate of the top left corner of the anchor view.
+ * @param y Y coordinate of the top left corner of the anchor view.
+ * @param width The width of the anchor view.
+ * @param height The height of the anchor view.
*/
- void removeViewFromContainerView(View view);
+ void setAnchorViewPosition(View view, float x, float y, float width, float height);
/**
- * Used for any calculations that need to place a View near a particular piece of web content.
- * @return The Y offset in pixels to apply to any added views.
+ * Release given anchor view.
+ * @param anchorView The anchor view that needs to be released.
*/
- int getChildViewOffsetYPix();
+ void releaseAnchorView(View anchorView);
} \ No newline at end of file