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

Side by Side Diff: ui/android/java/src/org/chromium/ui/picker/WeekPicker.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, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.util.Calendar; 11 import java.util.Calendar;
12 import java.util.TimeZone; 12 import java.util.TimeZone;
13 13
14 // This class is heavily based on android.widget.DatePicker. 14 // This class is heavily based on android.widget.DatePicker.
15 public class WeekPicker extends TwoFieldDatePicker { 15 public class WeekPicker extends TwoFieldDatePicker {
16 16
17 public WeekPicker(Context context, double minValue, double maxValue) { 17 public WeekPicker(Context context, double minValue, double maxValue) {
18 super(context, minValue, maxValue); 18 super(context, minValue, maxValue);
19 19
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 133
134 @Override 134 @Override
135 protected int getMinPositionInYear(int year) { 135 protected int getMinPositionInYear(int year) {
136 if (year == getISOWeekYearForDate(getMinDate())) { 136 if (year == getISOWeekYearForDate(getMinDate())) {
137 return getWeekForDate(getMinDate()); 137 return getWeekForDate(getMinDate());
138 } 138 }
139 return 1; 139 return 1;
140 } 140 }
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698