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

Side by Side Diff: blimp/client/app/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
« no previous file with comments | « no previous file | blimp/client/core/contents/android/blimp_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | blimp/client/core/contents/android/blimp_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698