Chromium Code Reviews| Index: base/android/java/src/org/chromium/base/JNIAdditionalImport.java |
| diff --git a/base/android/java/src/org/chromium/base/JNIAdditionalImport.java b/base/android/java/src/org/chromium/base/JNIAdditionalImport.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5ff74d3c143e16fde50e19d879243ae04df78910 |
| --- /dev/null |
| +++ b/base/android/java/src/org/chromium/base/JNIAdditionalImport.java |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2014 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. |
| + |
| +package org.chromium.base; |
| + |
| +import java.lang.annotation.ElementType; |
| +import java.lang.annotation.Retention; |
| +import java.lang.annotation.RetentionPolicy; |
| +import java.lang.annotation.Target; |
| + |
| +/** |
| + * @JNIAdditionalImport is used by the JNI generator to qualify classes used on method called by the |
|
bulach
2014/05/19 11:54:59
nit: not just @CalledByNative, but I suppose also
qsr
2014/05/19 12:07:47
Done.
|
| + * native code. It is necessary when it is not possible, for style reason, to import a class. The |
| + * value of the annotation must be the non-importable outer class. |
| + */ |
| +@Target(ElementType.TYPE) |
| +@Retention(RetentionPolicy.CLASS) |
| +public @interface JNIAdditionalImport { |
| + Class<?> value(); |
| +} |