Index: base/android/java/src/org/chromium/base/NativeCall.java |
diff --git a/base/android/java/src/org/chromium/base/CalledByNative.java b/base/android/java/src/org/chromium/base/NativeCall.java |
similarity index 51% |
copy from base/android/java/src/org/chromium/base/CalledByNative.java |
copy to base/android/java/src/org/chromium/base/NativeCall.java |
index 3e6315e7af294445d05985f2c032caa60802d91c..352edf7da538e2b2e676a2567ea511cd0ebccd26 100644 |
--- a/base/android/java/src/org/chromium/base/CalledByNative.java |
+++ b/base/android/java/src/org/chromium/base/NativeCall.java |
@@ -1,4 +1,4 @@ |
-// Copyright 2012 The Chromium Authors. All rights reserved. |
+// 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. |
@@ -10,14 +10,15 @@ import java.lang.annotation.RetentionPolicy; |
import java.lang.annotation.Target; |
/** |
- * @CalledByNative is used by the JNI generator to create the necessary JNI |
- * bindings and expose this method to native code. |
+ * @NativeCall is used by the JNI generator to create the necessary JNI bindings |
+ * so a native function can be bound to a Java inner class. The native class for |
+ * which the JNI method will be generated is specified by the first parameter. |
*/ |
@Target(ElementType.METHOD) |
@Retention(RetentionPolicy.CLASS) |
-public @interface CalledByNative { |
+public @interface NativeCall { |
/* |
- * If present, tells which inner class the method belongs to. |
+ * Value determines which native class the method should map to. |
*/ |
public String value() default ""; |
} |