| Index: content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java b/content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java
|
| index 9ca9f955e9b97ebe43b430ab6cdc947a4102e705..1c3a3cd54758f9ce7b56edf51a3a52286bc537cf 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/input/DateTimeChooserAndroid.java
|
| @@ -26,13 +26,8 @@ class DateTimeChooserAndroid {
|
| new InputDialogContainer.InputActionDelegate() {
|
|
|
| @Override
|
| - public void replaceDateTime(
|
| - int dialogType,
|
| - int year, int month, int day, int hour, int minute,
|
| - int second, int milli, int week) {
|
| - nativeReplaceDateTime(mNativeDateTimeChooserAndroid,
|
| - dialogType,
|
| - year, month, day, hour, minute, second, milli, week);
|
| + public void replaceDateTime(double value) {
|
| + nativeReplaceDateTime(mNativeDateTimeChooserAndroid, value);
|
| }
|
|
|
| @Override
|
| @@ -42,28 +37,22 @@ class DateTimeChooserAndroid {
|
| });
|
| }
|
|
|
| - private void showDialog(int dialogType, int year, int month, int monthDay,
|
| - int hour, int minute, int second, int milli,
|
| - int week, double min, double max, double step) {
|
| - mInputDialogContainer.showDialog(
|
| - dialogType, year, month, monthDay,
|
| - hour, minute, second, milli, week, min, max, step);
|
| + private void showDialog(int dialogType, double value,
|
| + double min, double max, double step) {
|
| + mInputDialogContainer.showDialog(dialogType, value, min, max, step);
|
| }
|
|
|
| @CalledByNative
|
| private static DateTimeChooserAndroid createDateTimeChooser(
|
| ContentViewCore contentViewCore,
|
| - int nativeDateTimeChooserAndroid, int dialogType,
|
| - int year, int month, int day,
|
| - int hour, int minute, int second, int milli, int week,
|
| + int nativeDateTimeChooserAndroid,
|
| + int dialogType, double value,
|
| double min, double max, double step) {
|
| DateTimeChooserAndroid chooser =
|
| new DateTimeChooserAndroid(
|
| contentViewCore.getContext(),
|
| nativeDateTimeChooserAndroid);
|
| - chooser.showDialog(
|
| - dialogType, year, month, day, hour, minute, second, milli,
|
| - week, min, max, step);
|
| + chooser.showDialog(dialogType, value, min, max, step);
|
| return chooser;
|
| }
|
|
|
| @@ -78,9 +67,7 @@ class DateTimeChooserAndroid {
|
| }
|
|
|
| private native void nativeReplaceDateTime(
|
| - int nativeDateTimeChooserAndroid, int dialogType,
|
| - int year, int month, int day, int hour, int minute,
|
| - int second, int milli, int week);
|
| + int nativeDateTimeChooserAndroid, double value);
|
|
|
| private native void nativeCancelDialog(int nativeDateTimeChooserAndroid);
|
| }
|
|
|