| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/core/contents/android/blimp_view.h" | 5 #include "blimp/client/core/contents/android/blimp_view.h" |
| 6 | 6 |
| 7 #include "blimp/client/core/compositor/blimp_compositor_manager.h" | |
| 8 #include "blimp/client/core/contents/blimp_contents_impl.h" | 7 #include "blimp/client/core/contents/blimp_contents_impl.h" |
| 9 #include "jni/BlimpView_jni.h" | 8 #include "jni/BlimpView_jni.h" |
| 10 #include "ui/android/window_android.h" | 9 #include "ui/android/window_android.h" |
| 11 #include "ui/events/android/motion_event_android.h" | 10 #include "ui/events/android/motion_event_android.h" |
| 12 | 11 |
| 13 namespace blimp { | 12 namespace blimp { |
| 14 namespace client { | 13 namespace client { |
| 15 | 14 |
| 16 // static | 15 // static |
| 17 bool BlimpView::RegisterJni(JNIEnv* env) { | 16 bool BlimpView::RegisterJni(JNIEnv* env) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 ui::MotionEventAndroid event( | 90 ui::MotionEventAndroid event( |
| 92 1.f / device_scale_factor_dp_to_px, env, motion_event, time_ms, | 91 1.f / device_scale_factor_dp_to_px, env, motion_event, time_ms, |
| 93 android_action, pointer_count, history_size, action_index, | 92 android_action, pointer_count, history_size, action_index, |
| 94 android_button_state, android_meta_state, raw_pos_x - pos_x_0, | 93 android_button_state, android_meta_state, raw_pos_x - pos_x_0, |
| 95 raw_pos_y - pos_y_0, pointer0, pointer1); | 94 raw_pos_y - pos_y_0, pointer0, pointer1); |
| 96 return blimp_contents_view_->OnTouchEvent(event); | 95 return blimp_contents_view_->OnTouchEvent(event); |
| 97 } | 96 } |
| 98 | 97 |
| 99 } // namespace client | 98 } // namespace client |
| 100 } // namespace blimp | 99 } // namespace blimp |
| OLD | NEW |