blob: f29ae123a7530201ecdbaf65f5f1aad2632f0956 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.example.jni_generator;
import org.chromium.base.annotations.NativeMethods;
class SampleModule {
void test() {
if (SampleForAnnotationProcessorJni.get().bar(1)) {
SampleForAnnotationProcessorJni.get().foo();
}
}
@NativeMethods("module")
interface Natives {
void foo();
boolean bar(int a);
}
}
|