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

Side by Side Diff: base/android/jni_generator/java/src/org/chromium/example/jni_generator/SampleForTests.java

Issue 1078343002: Move several annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.example.jni_generator; 5 package org.chromium.example.jni_generator;
6 6
7 import android.graphics.Rect; 7 import android.graphics.Rect;
8 8
9 import org.chromium.base.AccessedByNative;
10 import org.chromium.base.CalledByNative; 9 import org.chromium.base.CalledByNative;
11 import org.chromium.base.CalledByNativeUnchecked;
12 import org.chromium.base.JNINamespace; 10 import org.chromium.base.JNINamespace;
13 import org.chromium.base.NativeClassQualifiedName; 11 import org.chromium.base.NativeClassQualifiedName;
12 import org.chromium.base.annotations.AccessedByNative;
13 import org.chromium.base.annotations.CalledByNativeUnchecked;
14 14
15 import java.util.ArrayList; 15 import java.util.ArrayList;
16 import java.util.Iterator; 16 import java.util.Iterator;
17 import java.util.List; 17 import java.util.List;
18 18
19 // This class serves as a reference test for the bindings generator, and as exam ple documentation 19 // This class serves as a reference test for the bindings generator, and as exam ple documentation
20 // for how to use the jni generator. 20 // for how to use the jni generator.
21 // The C++ counter-part is sample_for_tests.cc. 21 // The C++ counter-part is sample_for_tests.cc.
22 // jni_generator.gyp has a jni_generator_tests target that will: 22 // jni_generator.gyp has a jni_generator_tests target that will:
23 // * Generate a header file for the JNI bindings based on this file. 23 // * Generate a header file for the JNI bindings based on this file.
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // Now, do something with element. 296 // Now, do something with element.
297 nativeAddStructB(mNativeCPPObject, element); 297 nativeAddStructB(mNativeCPPObject, element);
298 } 298 }
299 nativeIterateAndDoSomethingWithStructB(mNativeCPPObject); 299 nativeIterateAndDoSomethingWithStructB(mNativeCPPObject);
300 } 300 }
301 301
302 native void nativeAddStructB(long nativeCPPClass, InnerStructB b); 302 native void nativeAddStructB(long nativeCPPClass, InnerStructB b);
303 native void nativeIterateAndDoSomethingWithStructB(long nativeCPPClass); 303 native void nativeIterateAndDoSomethingWithStructB(long nativeCPPClass);
304 native String nativeReturnAString(long nativeCPPClass); 304 native String nativeReturnAString(long nativeCPPClass);
305 } 305 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698