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

Unified Diff: android_webview/native/js_result_handler.h

Issue 10907166: Upstream chromium side of modal dialogs for webview. (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 | « android_webview/native/aw_web_contents_delegate.cc ('k') | android_webview/native/js_result_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/js_result_handler.h
diff --git a/android_webview/native/js_result_handler.h b/android_webview/native/js_result_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..c85b116e1c559841059aaaea9f21295f09c7cddd
--- /dev/null
+++ b/android_webview/native/js_result_handler.h
@@ -0,0 +1,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_dialogs.h"
+
+namespace android_webview {
+
+bool RegisterJsResultHandler(JNIEnv* env);
+
+base::android::ScopedJavaLocalRef<jobject> createJsResultHandler(
+ JNIEnv* env,
+ const content::JavaScriptDialogCreator::DialogClosedCallback*
+ native_dialog_pointer);
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_NATIVE_JS_RESULT_HANDLER_H_
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | android_webview/native/js_result_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698