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

Side by Side Diff: ui/android/java/src/org/chromium/ui/picker/MonthPicker.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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser.input; 5 package org.chromium.ui.picker;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.content.R; 9 import org.chromium.ui.R;
10 10
11 import java.text.DateFormatSymbols; 11 import java.text.DateFormatSymbols;
12 import java.util.Arrays; 12 import java.util.Arrays;
13 import java.util.Calendar; 13 import java.util.Calendar;
14 import java.util.Locale; 14 import java.util.Locale;
15 import java.util.TimeZone; 15 import java.util.TimeZone;
16 16
17 public class MonthPicker extends TwoFieldDatePicker { 17 public class MonthPicker extends TwoFieldDatePicker {
18 private static final int MONTHS_NUMBER = 12; 18 private static final int MONTHS_NUMBER = 12;
19 19
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 @Override 110 @Override
111 protected int getMinPositionInYear(int year) { 111 protected int getMinPositionInYear(int year) {
112 if (year == getMinDate().get(Calendar.YEAR)) { 112 if (year == getMinDate().get(Calendar.YEAR)) {
113 return getMinDate().get(Calendar.MONTH); 113 return getMinDate().get(Calendar.MONTH);
114 } 114 }
115 return 0; 115 return 0;
116 } 116 }
117 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698