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

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

Issue 2382913004: Move autofill from ui/ to components/ (Closed)
Patch Set: move dimens cleanly Created 4 years, 2 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java
deleted file mode 100644
index 475cedcb558c9303c437f3ed6ebf136509136753..0000000000000000000000000000000000000000
--- a/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java
+++ /dev/null
@@ -1,81 +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 org.chromium.ui.DropdownItem;
-
-/**
- * Autofill suggestion container used to store information needed for each Autofill popup entry.
- */
-public class AutofillSuggestion implements DropdownItem {
- private final String mLabel;
- private final String mSublabel;
- private final int mIconId;
- private final int mSuggestionId;
- private final boolean mDeletable;
- private final boolean mIsMultilineLabel;
-
- /**
- * Constructs a Autofill suggestion container.
- * @param label The main label of the Autofill suggestion.
- * @param sublabel The describing sublabel of the Autofill suggestion.
- * @param suggestionId The type of suggestion.
- * @param deletable Whether the item can be deleted by the user.
- * @param multilineLabel Whether the label is displayed over multiple lines.
- */
- public AutofillSuggestion(String label, String sublabel, int iconId, int suggestionId,
- boolean deletable, boolean multilineLabel) {
- mLabel = label;
- mSublabel = sublabel;
- mIconId = iconId;
- mSuggestionId = suggestionId;
- mDeletable = deletable;
- mIsMultilineLabel = multilineLabel;
- }
-
- @Override
- public String getLabel() {
- return mLabel;
- }
-
- @Override
- public String getSublabel() {
- return mSublabel;
- }
-
- @Override
- public int getIconId() {
- return mIconId;
- }
-
- @Override
- public boolean isEnabled() {
- return true;
- }
-
- @Override
- public boolean isGroupHeader() {
- return false;
- }
-
- @Override
- public boolean isMultilineLabel() {
- return mIsMultilineLabel;
- }
-
- public int getSuggestionId() {
- return mSuggestionId;
- }
-
- public boolean isDeletable() {
- return mDeletable;
- }
-
- public boolean isFillable() {
- // Negative suggestion ID indiciates a tool like "settings" or "scan credit card."
- // Non-negative suggestion ID indicates suggestions that can be filled into the form.
- return mSuggestionId >= 0;
- }
-}
« no previous file with comments | « ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698