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 #include "remoting/client/jni/chromoting_jni_runtime.h" | 5 #include "remoting/client/jni/chromoting_jni_runtime.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/library_loader/library_loader_hooks.h" | 10 #include "base/android/library_loader/library_loader_hooks.h" |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/basictypes.h" | |
13 #include "base/command_line.h" | 12 #include "base/command_line.h" |
14 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
15 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
16 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
17 #include "google_apis/google_api_keys.h" | 16 #include "google_apis/google_api_keys.h" |
18 #include "jni/JniInterface_jni.h" | 17 #include "jni/JniInterface_jni.h" |
19 #include "remoting/base/url_request_context_getter.h" | 18 #include "remoting/base/url_request_context_getter.h" |
20 #include "remoting/client/jni/jni_touch_event_data.h" | 19 #include "remoting/client/jni/jni_touch_event_data.h" |
21 | 20 |
22 using base::android::ConvertJavaStringToUTF8; | 21 using base::android::ConvertJavaStringToUTF8; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 389 |
391 JNIEnv* env = base::android::AttachCurrentThread(); | 390 JNIEnv* env = base::android::AttachCurrentThread(); |
392 Java_JniInterface_redrawGraphicsInternal(env); | 391 Java_JniInterface_redrawGraphicsInternal(env); |
393 } | 392 } |
394 | 393 |
395 void ChromotingJniRuntime::DetachFromVmAndSignal(base::WaitableEvent* waiter) { | 394 void ChromotingJniRuntime::DetachFromVmAndSignal(base::WaitableEvent* waiter) { |
396 base::android::DetachFromVM(); | 395 base::android::DetachFromVM(); |
397 waiter->Signal(); | 396 waiter->Signal(); |
398 } | 397 } |
399 } // namespace remoting | 398 } // namespace remoting |
OLD | NEW |