OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ |
7 | 7 |
8 #include "base/android/jni_helper.h" | 8 #include "base/android/jni_helper.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "content/public/browser/javascript_dialogs.h" | 10 #include "content/public/browser/javascript_dialog_manager.h" |
11 | 11 |
12 namespace android_webview { | 12 namespace android_webview { |
13 | 13 |
14 bool RegisterJsResultHandler(JNIEnv* env); | 14 bool RegisterJsResultHandler(JNIEnv* env); |
15 | 15 |
16 base::android::ScopedJavaLocalRef<jobject> createJsResultHandler( | 16 base::android::ScopedJavaLocalRef<jobject> createJsResultHandler( |
17 JNIEnv* env, | 17 JNIEnv* env, |
18 const content::JavaScriptDialogCreator::DialogClosedCallback* | 18 const content::JavaScriptDialogManager::DialogClosedCallback* |
19 native_dialog_pointer); | 19 native_dialog_pointer); |
20 | 20 |
21 } // namespace android_webview | 21 } // namespace android_webview |
22 | 22 |
23 #endif // ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ | 23 #endif // ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_ |
OLD | NEW |