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

Side by Side Diff: base/android/callback_android.h

Issue 1996193003: Add support for calling the java Callback from native. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/callback_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 BASE_ANDROID_CALLBACK_ANDROID_H_
6 #define BASE_ANDROID_CALLBACK_ANDROID_H_
7
8 #include <jni.h>
9
10 #include "base/android/scoped_java_ref.h"
11 #include "base/base_export.h"
12
13 namespace base {
14 namespace android {
15
16 // Runs the given |callback| with the specified |arg|.
17 void BASE_EXPORT RunCallbackAndroid(const JavaRef<jobject>& callback,
18 const JavaRef<jobject>& arg);
19
20 // Runs the given |callback| with the specified |arg|.
21 void BASE_EXPORT RunCallbackAndroid(const JavaRef<jobject>& callback,
22 bool arg);
23
24 // JNI registration boilerplate.
25 bool RegisterCallbackAndroid(JNIEnv* env);
26
27 } // namespace android
28 } // namespace base
29
30 #endif // BASE_ANDROID_CALLBACK_ANDROID_H_
OLDNEW
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/callback_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698