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

Side by Side Diff: ui/android/java/src/org/chromium/ui/picker/TwoFieldDatePicker.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 import android.text.format.DateUtils; 8 import android.text.format.DateUtils;
9 import android.view.LayoutInflater; 9 import android.view.LayoutInflater;
10 import android.view.accessibility.AccessibilityEvent; 10 import android.view.accessibility.AccessibilityEvent;
11 import android.widget.FrameLayout; 11 import android.widget.FrameLayout;
12 import android.widget.NumberPicker; 12 import android.widget.NumberPicker;
13 import android.widget.NumberPicker.OnValueChangeListener; 13 import android.widget.NumberPicker.OnValueChangeListener;
14 14
15 import org.chromium.content.R; 15 import org.chromium.ui.R;
16 16
17 import java.util.Calendar; 17 import java.util.Calendar;
18 import java.util.TimeZone; 18 import java.util.TimeZone;
19 19
20 /** 20 /**
21 * This class is heavily based on android.widget.DatePicker. 21 * This class is heavily based on android.widget.DatePicker.
22 */ 22 */
23 public abstract class TwoFieldDatePicker extends FrameLayout { 23 public abstract class TwoFieldDatePicker extends FrameLayout {
24 24
25 private final NumberPicker mPositionInYearSpinner; 25 private final NumberPicker mPositionInYearSpinner;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 /** 241 /**
242 * Notifies the listener, if such, for a change in the selected date. 242 * Notifies the listener, if such, for a change in the selected date.
243 */ 243 */
244 protected void notifyDateChanged() { 244 protected void notifyDateChanged() {
245 sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED); 245 sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);
246 if (mMonthOrWeekChangedListener != null) { 246 if (mMonthOrWeekChangedListener != null) {
247 mMonthOrWeekChangedListener.onMonthOrWeekChanged(this, getYear(), ge tPositionInYear()); 247 mMonthOrWeekChangedListener.onMonthOrWeekChanged(this, getYear(), ge tPositionInYear());
248 } 248 }
249 } 249 }
250 } 250 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698