OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "device/vibration/android/vibration_jni_registrar.h" | |
6 | |
7 #include "base/android/jni_android.h" | |
8 #include "base/android/jni_registrar.h" | |
9 #include "device/vibration/vibration_provider_android.h" | |
10 | |
11 namespace device { | |
12 namespace android { | |
13 namespace { | |
14 | |
15 base::android::RegistrationMethod kRegisteredMethods[] = { | |
Tom Sepez
2014/12/01 18:27:16
nit: is this const?
timvolodine
2014/12/02 19:37:57
Done.
| |
16 { "VibrationProvider", device::VibrationProviderAndroid::Register }, | |
17 }; | |
18 | |
19 } // namespace | |
20 bool RegisterVibrationJni(JNIEnv* env) { | |
Tom Sepez
2014/12/01 18:27:16
nit: maybe blank line before this function
timvolodine
2014/12/02 19:37:56
Done.
| |
21 return RegisterNativeMethods( | |
22 env, kRegisteredMethods, arraysize(kRegisteredMethods)); | |
23 } | |
24 | |
25 } // namespace android | |
26 } // namespace device | |
OLD | NEW |