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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.chromoting.jni; 5 package org.chromium.chromoting.jni;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Bitmap; 8 import android.graphics.Bitmap;
9 import android.graphics.Point; 9 import android.graphics.Point;
10 import android.os.Looper; 10 import android.os.Looper;
11 import android.util.Log; 11 import android.util.Log;
12 12
13 import org.chromium.base.CalledByNative; 13 import org.chromium.base.annotations.CalledByNative;
14 import org.chromium.base.JNINamespace; 14 import org.chromium.base.annotations.JNINamespace;
15 import org.chromium.chromoting.CapabilityManager; 15 import org.chromium.chromoting.CapabilityManager;
16 import org.chromium.chromoting.R; 16 import org.chromium.chromoting.R;
17 import org.chromium.chromoting.SessionAuthenticator; 17 import org.chromium.chromoting.SessionAuthenticator;
18 18
19 import java.nio.ByteBuffer; 19 import java.nio.ByteBuffer;
20 import java.nio.ByteOrder; 20 import java.nio.ByteOrder;
21 21
22 /** 22 /**
23 * Initializes the Chromium remoting library, and provides JNI calls into it. 23 * Initializes the Chromium remoting library, and provides JNI calls into it.
24 * All interaction with the native code is centralized in this class. 24 * All interaction with the native code is centralized in this class.
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 public static void sendExtensionMessage(String type, String data) { 467 public static void sendExtensionMessage(String type, String data) {
468 if (!sConnected) { 468 if (!sConnected) {
469 return; 469 return;
470 } 470 }
471 471
472 nativeSendExtensionMessage(type, data); 472 nativeSendExtensionMessage(type, data);
473 } 473 }
474 474
475 private static native void nativeSendExtensionMessage(String type, String da ta); 475 private static native void nativeSendExtensionMessage(String type, String da ta);
476 } 476 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698