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

Side by Side Diff: ui/events/android/key_event_utils.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( 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
« no previous file with comments | « ui/base/resource/resource_bundle_android.cc ('k') | ui/events/android/motion_event_android.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 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 "ui/events/android/key_event_utils.h" 5 #include "ui/events/android/key_event_utils.h"
6 6
7 #include "jni/KeyEvent_jni.h" 7 #include "jni/KeyEvent_jni.h"
8 8
9 namespace ui { 9 namespace ui {
10 namespace events { 10 namespace events {
11 namespace android { 11 namespace android {
12 12
13 base::android::ScopedJavaLocalRef<jobject> CreateKeyEvent(JNIEnv* env, 13 base::android::ScopedJavaLocalRef<jobject> CreateKeyEvent(JNIEnv* env,
14 int action, 14 int action,
15 int key_code) { 15 int key_code) {
16 return JNI_KeyEvent::Java_KeyEvent_ConstructorAVKE_I_I(env, action, key_code); 16 return JNI_KeyEvent::Java_KeyEvent_ConstructorAVKE_I_I(env, action, key_code);
17 } 17 }
18 18
19 int GetKeyEventUnicodeChar(JNIEnv* env, 19 int GetKeyEventUnicodeChar(JNIEnv* env,
20 const base::android::JavaRef<jobject>& event, 20 const base::android::JavaRef<jobject>& event,
21 int meta_state) { 21 int meta_state) {
22 return static_cast<int>(JNI_KeyEvent::Java_KeyEvent_getUnicodeCharI_I( 22 return static_cast<int>(
23 env, event.obj(), meta_state)); 23 JNI_KeyEvent::Java_KeyEvent_getUnicodeCharI_I(env, event, meta_state));
24 } 24 }
25 25
26 } // namespace android 26 } // namespace android
27 } // namespace events 27 } // namespace events
28 } // namespace ui 28 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/resource/resource_bundle_android.cc ('k') | ui/events/android/motion_event_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698