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

Unified Diff: content/browser/android/date_time_chooser_android.h

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
« no previous file with comments | « no previous file | content/browser/android/date_time_chooser_android.cc » ('j') | content/common/view_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/date_time_chooser_android.h
diff --git a/content/browser/android/date_time_chooser_android.h b/content/browser/android/date_time_chooser_android.h
index 68cb4560172c06a408616d93ab4f17c941cb81b9..99cecc27039844e40d8a45765e74d3f086e6dbb2 100644
--- a/content/browser/android/date_time_chooser_android.h
+++ b/content/browser/android/date_time_chooser_android.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_
#include <string>
+#include <vector>
#include "base/android/jni_helper.h"
#include "base/memory/scoped_ptr.h"
@@ -14,6 +15,7 @@ namespace content {
class ContentViewCore;
class RenderViewHost;
+struct DateTimeSuggestion;
// Android implementation for DateTimeChooser dialogs.
class DateTimeChooserAndroid {
@@ -35,7 +37,8 @@ class DateTimeChooserAndroid {
int week,
double min,
double max,
- double step);
+ double step,
+ std::vector<DateTimeSuggestion> suggestions);
// Replaces the current value with the one passed the different fields
void ReplaceDateTime(JNIEnv* env,
@@ -53,6 +56,11 @@ class DateTimeChooserAndroid {
// Closes the dialog without propagating any changes.
void CancelDialog(JNIEnv* env, jobject);
+ // Replaces the current value with the one passed the different fields
+ void AcceptDataListSuggestion(JNIEnv* env,
+ jobject,
+ jstring value);
+
// Propagates the different types of accepted date/time values to the
// java side.
static void InitializeDateInputTypes(
« no previous file with comments | « no previous file | content/browser/android/date_time_chooser_android.cc » ('j') | content/common/view_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698