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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java

Issue 14100003: [Android] Moving input related files to a separate input/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java b/content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java
deleted file mode 100644
index 7fc146beffe70ba503f95a8a9496698f9be93f92..0000000000000000000000000000000000000000
--- a/content/public/android/java/src/org/chromium/content/browser/DateTimeChooserAndroid.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.content.browser;
-
-import org.chromium.base.CalledByNative;
-import org.chromium.base.JNINamespace;
-
-import android.content.Context;
-
-/**
- * Plumbing for the different date/time dialog adapters.
- */
-@JNINamespace("content")
-class DateTimeChooserAndroid {
-
- private final int mNativeDateTimeChooserAndroid;
- private final InputDialogContainer mInputDialogContainer;
-
- private DateTimeChooserAndroid(Context context,
- int nativeDateTimeChooserAndroid) {
- mNativeDateTimeChooserAndroid = nativeDateTimeChooserAndroid;
- mInputDialogContainer = new InputDialogContainer(context,
- new InputDialogContainer.InputActionDelegate() {
-
- @Override
- public void replaceDateTime(
- int dialogType,
- int year, int month, int day, int hour, int minute, int second) {
- nativeReplaceDateTime(mNativeDateTimeChooserAndroid,
- dialogType,
- year, month, day, hour, minute, second);
- }
-
- @Override
- public void cancelDateTimeDialog() {
- nativeCancelDialog(mNativeDateTimeChooserAndroid);
- }
- });
- }
-
- private void showDialog(int dialogType, int year, int month, int monthDay,
- int hour, int minute, int second) {
- mInputDialogContainer.showDialog(dialogType, year, month, monthDay,
- hour, minute, second);
- }
-
- @CalledByNative
- private static DateTimeChooserAndroid createDateTimeChooser(
- ContentViewCore contentViewCore,
- int nativeDateTimeChooserAndroid, int dialogType,
- int year, int month, int day,
- int hour, int minute, int second) {
- DateTimeChooserAndroid chooser =
- new DateTimeChooserAndroid(
- contentViewCore.getContext(), nativeDateTimeChooserAndroid);
- chooser.showDialog(dialogType, year, month, day, hour, minute, second);
- return chooser;
- }
-
- @CalledByNative
- private static void initializeDateInputTypes(int textInputTypeDate, int textInputTypeDateTime,
- int textInputTypeDateTimeLocal, int textInputTypeMonth,
- int textInputTypeTime) {
- InputDialogContainer.initializeInputTypes(textInputTypeDate, textInputTypeDateTime,
- textInputTypeDateTimeLocal, textInputTypeMonth, textInputTypeTime);
- }
-
- private native void nativeReplaceDateTime(int nativeDateTimeChooserAndroid,
- int dialogType,
- int year, int month, int day, int hour, int minute, int second);
-
- private native void nativeCancelDialog(int nativeDateTimeChooserAndroid);
-}

Powered by Google App Engine
This is Rietveld 408576698