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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/input/WeekPickerDialog.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
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.content.browser.input;
6
7 import android.content.Context;
8
9 import org.chromium.content.R;
10
11 public class WeekPickerDialog extends TwoFieldDatePickerDialog {
12
13 /**
14 * @param context The context the dialog is to run in.
15 * @param callBack How the parent is notified that the date is set.
16 * @param year The initial year of the dialog.
17 * @param weekOfYear The initial week of the dialog.
18 */
19 public WeekPickerDialog(Context context,
20 OnValueSetListener callBack,
21 int year, int weekOfYear,
22 double minValue, double maxValue) {
23 this(context, 0, callBack, year, weekOfYear, minValue, maxValue);
24 }
25
26 /**
27 * @param context The context the dialog is to run in.
28 * @param theme the theme to apply to this dialog
29 * @param callBack How the parent is notified that the date is set.
30 * @param year The initial year of the dialog.
31 * @param weekOfYear The initial week of the dialog.
32 */
33 public WeekPickerDialog(Context context,
34 int theme,
35 OnValueSetListener callBack,
36 int year,
37 int weekOfYear,
38 double minValue, double maxValue) {
39 super(context, theme, callBack, year, weekOfYear, minValue, maxValue);
40 setTitle(R.string.week_picker_dialog_title);
41 }
42
43 @Override
44 protected TwoFieldDatePicker createPicker(Context context, double minValue, double maxValue) {
45 return new WeekPicker(context, minValue, maxValue);
46 }
47
48 /**
49 * Gets the {@link WeekPicker} contained in this dialog.
50 *
51 * @return The calendar view.
52 */
53 public WeekPicker getWeekPicker() {
54 return (WeekPicker) mPicker;
55 }
56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698