OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_UTIL_H_ | |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_UTIL_H_ | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include "base/android/jni_android.h" | |
11 #include "base/android/scoped_java_ref.h" | |
12 #include "content/public/common/file_chooser_params.h" | |
13 | |
14 namespace content { | |
15 | |
16 base::android::ScopedJavaLocalRef<jobject> ToJavaFileChooserParams( | |
17 JNIEnv* env, | |
18 const FileChooserParams& file_chooser_params); | |
19 | |
20 content::FileChooserParams ToNativeFileChooserParams( | |
21 JNIEnv* env, | |
22 jint mode, | |
23 jstring title, | |
24 jstring default_file, | |
25 jobjectArray accept_types, | |
26 jstring capture); | |
27 | |
28 }; // namespace content | |
29 | |
30 #endif // CONTENT_BROWSER_ANDROID_CONTENT_UTIL_H_ | |
OLD | NEW |