1// Copyright 2014 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
5package org.chromium.base;
6
7import java.lang.annotation.ElementType;
8import java.lang.annotation.Retention;
9import java.lang.annotation.RetentionPolicy;
10import java.lang.annotation.Target;
11
12/**
13 * @NativeCall is used by the JNI generator to create the necessary JNI bindings
14 * so a native function can be bound to a Java inner class. The native class for
15 * which the JNI method will be generated is specified by the first parameter.
16 */
17@Target(ElementType.METHOD)
18@Retention(RetentionPolicy.CLASS)
19public @interface NativeCall {
20    /*
21     * Value determines which native class the method should map to.
22     */
23    public String value() default "";
24}
25