OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |