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

Side by Side Diff: ui/android/java/src/org/chromium/ui/MonthPickerDialog.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 public class MonthPickerDialog extends TwoFieldDatePickerDialog { 9 public class MonthPickerDialog extends TwoFieldDatePickerDialog {
12 10
13 /** 11 /**
14 * @param context The context the dialog is to run in. 12 * @param context The context the dialog is to run in.
15 * @param callBack How the parent is notified that the date is set. 13 * @param callBack How the parent is notified that the date is set.
16 * @param year The initial year of the dialog. 14 * @param year The initial year of the dialog.
17 * @param monthOfYear The initial month of the dialog. 15 * @param monthOfYear The initial month of the dialog.
18 */ 16 */
19 public MonthPickerDialog(Context context, OnValueSetListener callBack, 17 public MonthPickerDialog(Context context, OnValueSetListener callBack,
20 int year, int monthOfYear, double minMonth, double maxMonth) { 18 int year, int monthOfYear, double minMonth, double maxMonth) {
21 super(context, callBack, year, monthOfYear, minMonth, maxMonth); 19 super(context, callBack, year, monthOfYear, minMonth, maxMonth);
22 setTitle(R.string.month_picker_dialog_title); 20 setTitle(R.string.month_picker_dialog_title);
23 } 21 }
24 22
25 @Override 23 @Override
26 protected TwoFieldDatePicker createPicker(Context context, double minValue, double maxValue) { 24 protected TwoFieldDatePicker createPicker(Context context, double minValue, double maxValue) {
27 return new MonthPicker(context, minValue, maxValue); 25 return new MonthPicker(context, minValue, maxValue);
28 } 26 }
29 27
30 /** 28 /**
31 * Gets the {@link MonthPicker} contained in this dialog. 29 * Gets the {@link MonthPicker} contained in this dialog.
32 * 30 *
33 * @return The calendar view. 31 * @return The calendar view.
34 */ 32 */
35 public MonthPicker getMonthPicker() { 33 public MonthPicker getMonthPicker() {
36 return (MonthPicker) mPicker; 34 return (MonthPicker) mPicker;
37 } 35 }
38 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698