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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/popup_touch_handle_drawable.h" 5 #include "content/browser/android/popup_touch_handle_drawable.h"
6 6
7 #include "content/public/browser/android/content_view_core.h" 7 #include "content/public/browser/android/content_view_core.h"
8 #include "jni/PopupTouchHandleDrawable_jni.h" 8 #include "jni/PopupTouchHandleDrawable_jni.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 Java_PopupTouchHandleDrawable_getPositionY(env, obj.obj()), 93 Java_PopupTouchHandleDrawable_getPositionY(env, obj.obj()),
94 Java_PopupTouchHandleDrawable_getVisibleWidth(env, obj.obj()), 94 Java_PopupTouchHandleDrawable_getVisibleWidth(env, obj.obj()),
95 Java_PopupTouchHandleDrawable_getVisibleHeight(env, obj.obj())); 95 Java_PopupTouchHandleDrawable_getVisibleHeight(env, obj.obj()));
96 return gfx::ScaleRect(unscaled_rect, 1.f / dpi_scale_); 96 return gfx::ScaleRect(unscaled_rect, 1.f / dpi_scale_);
97 } 97 }
98 98
99 float PopupTouchHandleDrawable::GetDrawableHorizontalPaddingRatio() const { 99 float PopupTouchHandleDrawable::GetDrawableHorizontalPaddingRatio() const {
100 return drawable_horizontal_padding_ratio_; 100 return drawable_horizontal_padding_ratio_;
101 } 101 }
102 102
103 // static
104 bool PopupTouchHandleDrawable::RegisterPopupTouchHandleDrawable(JNIEnv* env) {
105 return RegisterNativesImpl(env);
106 }
107
108 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698