summaryrefslogtreecommitdiffstats
path: root/android_webview/native/js_result_handler.h
blob: 4bd478f31bdcf3075e202ddf5ff87492adf20218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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.

#ifndef ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_
#define ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_

#include "base/android/jni_helper.h"
#include "base/android/scoped_java_ref.h"
#include "content/public/browser/javascript_dialog_manager.h"

namespace android_webview {

bool RegisterJsResultHandler(JNIEnv* env);

base::android::ScopedJavaLocalRef<jobject> createJsResultHandler(
    JNIEnv* env,
    const content::JavaScriptDialogManager::DialogClosedCallback*
        native_dialog_pointer);

}  // namespace android_webview

#endif  // ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_