Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: blimp/client/core/contents/android/blimp_view.cc

Issue 2054193002: Android mouse events shouldn't appear as TouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a test, etc. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « blimp/client/app/android/blimp_view.cc ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698