| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/client/app/android/blimp_view.h" | 5 #include "blimp/client/app/android/blimp_view.h" |
| 6 | 6 |
| 7 #include <android/native_window_jni.h> | 7 #include <android/native_window_jni.h> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "blimp/client/app/android/blimp_client_session_android.h" | 10 #include "blimp/client/app/android/blimp_client_session_android.h" |
| 11 #include "blimp/client/app/compositor/browser_compositor.h" | 11 #include "blimp/client/app/compositor/browser_compositor.h" |
| 12 #include "blimp/client/core/compositor/blimp_compositor_dependencies.h" | 12 #include "blimp/client/core/compositor/blimp_compositor_dependencies.h" |
| 13 #include "blimp/client/feature/compositor/blimp_compositor_manager.h" | 13 #include "blimp/client/core/compositor/blimp_compositor_manager.h" |
| 14 #include "blimp/client/support/compositor/compositor_dependencies_impl.h" | 14 #include "blimp/client/support/compositor/compositor_dependencies_impl.h" |
| 15 #include "jni/BlimpView_jni.h" | 15 #include "jni/BlimpView_jni.h" |
| 16 #include "ui/events/android/motion_event_android.h" | 16 #include "ui/events/android/motion_event_android.h" |
| 17 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
| 18 | 18 |
| 19 using base::android::JavaParamRef; | 19 using base::android::JavaParamRef; |
| 20 | 20 |
| 21 namespace blimp { | 21 namespace blimp { |
| 22 namespace client { | 22 namespace client { |
| 23 | 23 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 return compositor_manager_->OnTouchEvent(event); | 202 return compositor_manager_->OnTouchEvent(event); |
| 203 } | 203 } |
| 204 | 204 |
| 205 void BlimpView::OnSwapBuffersCompleted() { | 205 void BlimpView::OnSwapBuffersCompleted() { |
| 206 JNIEnv* env = base::android::AttachCurrentThread(); | 206 JNIEnv* env = base::android::AttachCurrentThread(); |
| 207 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_); | 207 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_); |
| 208 } | 208 } |
| 209 | 209 |
| 210 } // namespace client | 210 } // namespace client |
| 211 } // namespace blimp | 211 } // namespace blimp |
| OLD | NEW |