| Index: content/browser/android/date_time_chooser_android.cc
|
| diff --git a/content/browser/android/date_time_chooser_android.cc b/content/browser/android/date_time_chooser_android.cc
|
| index be87a932e1c922814c0d18fd2eeb949eacb09912..29322ece6439074d89877206c105b8510b669e43 100644
|
| --- a/content/browser/android/date_time_chooser_android.cc
|
| +++ b/content/browser/android/date_time_chooser_android.cc
|
| @@ -40,26 +40,11 @@ void DateTimeChooserAndroid::InitializeDateInputTypes(
|
|
|
| void DateTimeChooserAndroid::ReplaceDateTime(JNIEnv* env,
|
| jobject,
|
| - int dialog_type,
|
| - int year,
|
| - int month,
|
| - int day,
|
| - int hour,
|
| - int minute,
|
| - int second,
|
| - int milli,
|
| - int week) {
|
| - ViewHostMsg_DateTimeDialogValue_Params value;
|
| - value.year = year;
|
| - value.month = month;
|
| - value.day = day;
|
| - value.hour = hour;
|
| - value.minute = minute;
|
| - value.second = second;
|
| - value.milli = milli;
|
| - value.week = week;
|
| - value.dialog_type = dialog_type;
|
| - host_->Send(new ViewMsg_ReplaceDateTime(host_->GetRoutingID(), value));
|
| + jint identifier,
|
| + jdouble value) {
|
| + host_->Send(new ViewMsg_ReplaceDateTime(host_->GetRoutingID(),
|
| + identifier,
|
| + value));
|
| }
|
|
|
| void DateTimeChooserAndroid::CancelDialog(JNIEnv* env, jobject) {
|
| @@ -68,15 +53,9 @@ void DateTimeChooserAndroid::CancelDialog(JNIEnv* env, jobject) {
|
|
|
| void DateTimeChooserAndroid::ShowDialog(ContentViewCore* content,
|
| RenderViewHost* host,
|
| - int type,
|
| - int year,
|
| - int month,
|
| - int day,
|
| - int hour,
|
| - int minute,
|
| - int second,
|
| - int milli,
|
| - int week,
|
| + int identifier,
|
| + int dialog_type,
|
| + double dialog_value,
|
| double min,
|
| double max,
|
| double step) {
|
| @@ -87,15 +66,9 @@ void DateTimeChooserAndroid::ShowDialog(ContentViewCore* content,
|
| env,
|
| content->GetJavaObject().obj(),
|
| reinterpret_cast<intptr_t>(this),
|
| - type,
|
| - year,
|
| - month,
|
| - day,
|
| - hour,
|
| - minute,
|
| - second,
|
| - milli,
|
| - week,
|
| + identifier,
|
| + dialog_type,
|
| + dialog_value,
|
| min,
|
| max,
|
| step));
|
|
|