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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java

Issue 23623019: Support datalist for date/time input types on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
Index: content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java b/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java
new file mode 100644
index 0000000000000000000000000000000000000000..873f73f04ac7c982e5f8f825c0a8ae0884268a76
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/input/DateTimeSuggestion.java
@@ -0,0 +1,27 @@
+// 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.content.browser.input;
+
+/**
+ * Date/time suggestion container used to store information for each suggestion that will be shown
+ * in the suggestion list dialog.
+ */
+public class DateTimeSuggestion {
+ final String mValue;
newt (away) 2013/10/09 07:20:52 these should presumably have the same visibility a
keishi 2013/10/21 17:00:58 Done.
+ final String mLocalizedValue;
+ final String mLabel;
+
+ /**
+ * Constructs a color suggestion container.
+ * @param value The suggested color.
+ * @param localizedValue The suggested color.
+ * @param label The label for the suggestion.
+ */
+ public DateTimeSuggestion(String value, String localizedValue, String label) {
+ mValue = value;
+ mLocalizedValue = localizedValue;
+ mLabel = label;
+ }
+}
Miguel Garcia 2013/10/08 17:44:40 please implement equals() and hashcode() (and mayb

Powered by Google App Engine
This is Rietveld 408576698