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 "android_webview/browser/popup_touch_handle_drawable.h" | 5 #include "android_webview/browser/popup_touch_handle_drawable.h" |
6 | 6 |
7 #include "jni/PopupTouchHandleDrawable_jni.h" | 7 #include "jni/PopupTouchHandleDrawable_jni.h" |
8 | 8 |
9 using base::android::JavaParamRef; | 9 using base::android::JavaParamRef; |
10 using base::android::ScopedJavaLocalRef; | 10 using base::android::ScopedJavaLocalRef; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 return drawable_horizontal_padding_ratio_; | 87 return drawable_horizontal_padding_ratio_; |
88 } | 88 } |
89 | 89 |
90 static jlong Init(JNIEnv* env, | 90 static jlong Init(JNIEnv* env, |
91 const JavaParamRef<jobject>& obj, | 91 const JavaParamRef<jobject>& obj, |
92 const jfloat horizontal_padding_ratio) { | 92 const jfloat horizontal_padding_ratio) { |
93 return reinterpret_cast<intptr_t>( | 93 return reinterpret_cast<intptr_t>( |
94 new PopupTouchHandleDrawable(env, obj, horizontal_padding_ratio)); | 94 new PopupTouchHandleDrawable(env, obj, horizontal_padding_ratio)); |
95 } | 95 } |
96 | 96 |
97 } // namespace content | 97 } // namespace android_webview |
OLD | NEW |