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/contents/blimp_contents_impl.h" | 7 #include "blimp/client/core/contents/blimp_contents_impl.h" |
8 #include "jni/BlimpView_jni.h" | 8 #include "jni/BlimpView_jni.h" |
9 #include "ui/android/window_android.h" | 9 #include "ui/android/window_android.h" |
10 #include "ui/events/android/motion_event_android.h" | 10 #include "ui/events/android/motion_event_android.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 ui::MotionEventAndroid::Pointer pointer0( | 84 ui::MotionEventAndroid::Pointer pointer0( |
85 pointer_id_0, pos_x_0, pos_y_0, touch_major_0, touch_minor_0, | 85 pointer_id_0, pos_x_0, pos_y_0, touch_major_0, touch_minor_0, |
86 orientation_0, tilt_0, android_tool_type_0); | 86 orientation_0, tilt_0, android_tool_type_0); |
87 ui::MotionEventAndroid::Pointer pointer1( | 87 ui::MotionEventAndroid::Pointer pointer1( |
88 pointer_id_1, pos_x_1, pos_y_1, touch_major_1, touch_minor_1, | 88 pointer_id_1, pos_x_1, pos_y_1, touch_major_1, touch_minor_1, |
89 orientation_1, tilt_1, android_tool_type_1); | 89 orientation_1, tilt_1, android_tool_type_1); |
90 ui::MotionEventAndroid event( | 90 ui::MotionEventAndroid event( |
91 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, |
92 android_action, pointer_count, history_size, action_index, | 92 android_action, pointer_count, history_size, action_index, |
93 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, |
94 raw_pos_y - pos_y_0, pointer0, pointer1); | 94 raw_pos_y - pos_y_0, &pointer0, &pointer1); |
95 return blimp_contents_view_->OnTouchEvent(event); | 95 return blimp_contents_view_->OnTouchEvent(event); |
96 } | 96 } |
97 | 97 |
98 } // namespace client | 98 } // namespace client |
99 } // namespace blimp | 99 } // namespace blimp |
OLD | NEW |