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

Side by Side Diff: ui/android/java/src/org/chromium/ui/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: Build break fixed 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;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.content.R;
10
11 import java.text.DateFormatSymbols; 9 import java.text.DateFormatSymbols;
12 import java.util.Arrays; 10 import java.util.Arrays;
13 import java.util.Calendar; 11 import java.util.Calendar;
14 import java.util.Locale; 12 import java.util.Locale;
15 import java.util.TimeZone; 13 import java.util.TimeZone;
16 14
17 public class MonthPicker extends TwoFieldDatePicker { 15 public class MonthPicker extends TwoFieldDatePicker {
18 private static final int MONTHS_NUMBER = 12; 16 private static final int MONTHS_NUMBER = 12;
19 17
20 private final String[] mShortMonths; 18 private final String[] mShortMonths;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 106 }
109 107
110 @Override 108 @Override
111 protected int getMinPositionInYear(int year) { 109 protected int getMinPositionInYear(int year) {
112 if (year == getMinDate().get(Calendar.YEAR)) { 110 if (year == getMinDate().get(Calendar.YEAR)) {
113 return getMinDate().get(Calendar.MONTH); 111 return getMinDate().get(Calendar.MONTH);
114 } 112 }
115 return 0; 113 return 0;
116 } 114 }
117 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698