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

Unified Diff: ui/android/java/src/org/chromium/ui/picker/DateDialogNormalizer.java

Issue 574673003: Move *Picker.java and *PickerDialog.java to ui/android/java/... - Part1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased patch. Created 6 years, 3 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: ui/android/java/src/org/chromium/ui/picker/DateDialogNormalizer.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/DateDialogNormalizer.java b/ui/android/java/src/org/chromium/ui/picker/DateDialogNormalizer.java
similarity index 95%
rename from content/public/android/java/src/org/chromium/content/browser/input/DateDialogNormalizer.java
rename to ui/android/java/src/org/chromium/ui/picker/DateDialogNormalizer.java
index 709d0e73943d9f289dfffb965f7079673302f931..25a7495638717e224902c5ab61d858e45194e628 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/DateDialogNormalizer.java
+++ b/ui/android/java/src/org/chromium/ui/picker/DateDialogNormalizer.java
@@ -2,7 +2,7 @@
// 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;
+package org.chromium.ui.picker;
import android.widget.DatePicker;
import android.widget.DatePicker.OnDateChangedListener;
@@ -13,7 +13,7 @@ import java.util.TimeZone;
/**
* Normalize a date dialog so that it respect min and max.
*/
-class DateDialogNormalizer {
+public class DateDialogNormalizer {
private static void setLimits(DatePicker picker, long minMillis, long maxMillis) {
// DatePicker intervals are non inclusive, the DatePicker will throw an
@@ -56,7 +56,7 @@ class DateDialogNormalizer {
* Normalizes an existing DateDialogPicker changing the default date if
* needed to comply with the {@code min} and {@code max} attributes.
*/
- static void normalize(DatePicker picker, OnDateChangedListener listener,
+ public static void normalize(DatePicker picker, OnDateChangedListener listener,
int year, int month, int day, int hour, int minute, long minMillis, long maxMillis) {
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
calendar.clear();

Powered by Google App Engine
This is Rietveld 408576698