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

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "content/browser/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 jlong time_ms, 966 jlong time_ms,
967 jfloat x, 967 jfloat x,
968 jfloat y, 968 jfloat y,
969 jint tool_type) { 969 jint tool_type) {
970 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 970 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
971 if (!rwhv) 971 if (!rwhv)
972 return false; 972 return false;
973 973
974 blink::WebMouseEvent event = WebMouseEventBuilder::Build( 974 blink::WebMouseEvent event = WebMouseEventBuilder::Build(
975 WebInputEvent::MouseMove, 975 WebInputEvent::MouseMove,
976 blink::WebMouseEvent::ButtonNone, 976 blink::WebMouseEvent::Button::NoButton,
977 time_ms / 1000.0, x / dpi_scale(), y / dpi_scale(), 0, 1, 977 time_ms / 1000.0, x / dpi_scale(), y / dpi_scale(), 0, 1,
978 ui::ToWebPointerType(static_cast<ui::MotionEvent::ToolType>(tool_type))); 978 ui::ToWebPointerType(static_cast<ui::MotionEvent::ToolType>(tool_type)));
979 979
980 rwhv->SendMouseEvent(event); 980 rwhv->SendMouseEvent(event);
981 return true; 981 return true;
982 } 982 }
983 983
984 jboolean ContentViewCoreImpl::SendMouseWheelEvent( 984 jboolean ContentViewCoreImpl::SendMouseWheelEvent(
985 JNIEnv* env, 985 JNIEnv* env,
986 const JavaParamRef<jobject>& obj, 986 const JavaParamRef<jobject>& obj,
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 return ScopedJavaLocalRef<jobject>(); 1588 return ScopedJavaLocalRef<jobject>();
1589 1589
1590 return view->GetJavaObject(); 1590 return view->GetJavaObject();
1591 } 1591 }
1592 1592
1593 bool RegisterContentViewCore(JNIEnv* env) { 1593 bool RegisterContentViewCore(JNIEnv* env) {
1594 return RegisterNativesImpl(env); 1594 return RegisterNativesImpl(env);
1595 } 1595 }
1596 1596
1597 } // namespace content 1597 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/event_sender.cc ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698