| 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 "ui/base/android/window_android.h" | 5 #include "ui/android/window_android.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_weak_ref.h" | 9 #include "base/android/jni_weak_ref.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "jni/WindowAndroid_jni.h" | 11 #include "jni/WindowAndroid_jni.h" |
| 12 #include "ui/base/android/window_android_compositor.h" | 12 #include "ui/android/window_android_compositor.h" |
| 13 #include "ui/base/android/window_android_observer.h" | 13 #include "ui/android/window_android_observer.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 using base::android::AttachCurrentThread; | 17 using base::android::AttachCurrentThread; |
| 18 using base::android::ScopedJavaLocalRef; | 18 using base::android::ScopedJavaLocalRef; |
| 19 | 19 |
| 20 WindowAndroid::WindowAndroid(JNIEnv* env, jobject obj) | 20 WindowAndroid::WindowAndroid(JNIEnv* env, jobject obj) |
| 21 : weak_java_window_(env, obj), compositor_(NULL) { | 21 : weak_java_window_(env, obj), compositor_(NULL) { |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // ---------------------------------------------------------------------------- | 103 // ---------------------------------------------------------------------------- |
| 104 // Native JNI methods | 104 // Native JNI methods |
| 105 // ---------------------------------------------------------------------------- | 105 // ---------------------------------------------------------------------------- |
| 106 | 106 |
| 107 jlong Init(JNIEnv* env, jobject obj) { | 107 jlong Init(JNIEnv* env, jobject obj) { |
| 108 WindowAndroid* window = new WindowAndroid(env, obj); | 108 WindowAndroid* window = new WindowAndroid(env, obj); |
| 109 return reinterpret_cast<intptr_t>(window); | 109 return reinterpret_cast<intptr_t>(window); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace ui | 112 } // namespace ui |
| OLD | NEW |