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" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 motion_event, | 199 motion_event, |
200 time_ms, | 200 time_ms, |
201 android_action, | 201 android_action, |
202 pointer_count, | 202 pointer_count, |
203 history_size, | 203 history_size, |
204 action_index, | 204 action_index, |
205 android_button_state, | 205 android_button_state, |
206 android_meta_state, | 206 android_meta_state, |
207 raw_pos_x - pos_x_0, | 207 raw_pos_x - pos_x_0, |
208 raw_pos_y - pos_y_0, | 208 raw_pos_y - pos_y_0, |
209 pointer0, | 209 &pointer0, |
210 pointer1); | 210 &pointer1); |
211 | 211 |
212 return document_manager_->OnTouchEvent(event); | 212 return document_manager_->OnTouchEvent(event); |
213 } | 213 } |
214 | 214 |
215 void BlimpView::OnSwapBuffersCompleted() { | 215 void BlimpView::OnSwapBuffersCompleted() { |
216 JNIEnv* env = base::android::AttachCurrentThread(); | 216 JNIEnv* env = base::android::AttachCurrentThread(); |
217 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_); | 217 Java_BlimpView_onSwapBuffersCompleted(env, java_obj_); |
218 } | 218 } |
219 | 219 |
220 } // namespace app | 220 } // namespace app |
221 } // namespace client | 221 } // namespace client |
222 } // namespace blimp | 222 } // namespace blimp |
OLD | NEW |