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

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

Issue 2144703003: Remove ContentViewCore::GetDpiScale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 android_meta_state, 1000 android_meta_state,
1001 raw_pos_x - pos_x_0, 1001 raw_pos_x - pos_x_0,
1002 raw_pos_y - pos_y_0, 1002 raw_pos_y - pos_y_0,
1003 pointer0, 1003 pointer0,
1004 pointer1); 1004 pointer1);
1005 1005
1006 return is_touch_handle_event ? rwhv->OnTouchHandleEvent(event) 1006 return is_touch_handle_event ? rwhv->OnTouchHandleEvent(event)
1007 : rwhv->OnTouchEvent(event); 1007 : rwhv->OnTouchEvent(event);
1008 } 1008 }
1009 1009
1010 float ContentViewCoreImpl::GetDpiScale() const {
1011 return dpi_scale_;
1012 }
1013
1014 jboolean ContentViewCoreImpl::SendMouseMoveEvent( 1010 jboolean ContentViewCoreImpl::SendMouseMoveEvent(
1015 JNIEnv* env, 1011 JNIEnv* env,
1016 const JavaParamRef<jobject>& obj, 1012 const JavaParamRef<jobject>& obj,
1017 jlong time_ms, 1013 jlong time_ms,
1018 jfloat x, 1014 jfloat x,
1019 jfloat y, 1015 jfloat y,
1020 jint tool_type) { 1016 jint tool_type) {
1021 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1017 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1022 if (!rwhv) 1018 if (!rwhv)
1023 return false; 1019 return false;
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 return ScopedJavaLocalRef<jobject>(); 1650 return ScopedJavaLocalRef<jobject>();
1655 1651
1656 return view->GetJavaObject(); 1652 return view->GetJavaObject();
1657 } 1653 }
1658 1654
1659 bool RegisterContentViewCore(JNIEnv* env) { 1655 bool RegisterContentViewCore(JNIEnv* env) {
1660 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env); 1656 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env);
1661 } 1657 }
1662 1658
1663 } // namespace content 1659 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698