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

Unified Diff: ui/android/ui_jni_registrar.cc

Issue 10916160: Upstreaming SelectFileDialog for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/android/ui_jni_registrar.h ('k') | ui/base/dialogs/select_file_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/ui_jni_registrar.cc
diff --git a/ui/android/ui_jni_registrar.cc b/ui/android/ui_jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4cfc267eeacfd1aee95e2ef4ed8423d752181fd5
--- /dev/null
+++ b/ui/android/ui_jni_registrar.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 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.
+
+#include "ui/android/ui_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "ui/base/dialogs/select_file_dialog_android.h"
+#include "ui/gfx/android/window_android.h"
+
+namespace ui {
+
+static base::android::RegistrationMethod kUiRegisteredMethods[] = {
+ { "NativeWindow", WindowAndroid::RegisterWindowAndroid },
+ { "SelectFileDialog", SelectFileDialogImpl::RegisterSelectFileDialog },
+};
+
+bool RegisterJni(JNIEnv* env) {
+ return RegisterNativeMethods(env, kUiRegisteredMethods,
+ arraysize(kUiRegisteredMethods));
+}
+
+} // namespace ui
« no previous file with comments | « ui/android/ui_jni_registrar.h ('k') | ui/base/dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698