ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / base / android / base_jni_registrar.cc
blob7439d3c5a2b24c0424977b627ce620e28a22b381
1 // Copyright (c) 2012 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.
5 #include "base/android/base_jni_registrar.h"
7 #include "base/android/animation_frame_time_histogram.h"
8 #include "base/android/application_status_listener.h"
9 #include "base/android/build_info.h"
10 #include "base/android/command_line_android.h"
11 #include "base/android/content_uri_utils.h"
12 #include "base/android/cpu_features.h"
13 #include "base/android/event_log.h"
14 #include "base/android/field_trial_list.h"
15 #include "base/android/important_file_writer_android.h"
16 #include "base/android/java_handler_thread.h"
17 #include "base/android/jni_android.h"
18 #include "base/android/jni_registrar.h"
19 #include "base/android/jni_utils.h"
20 #include "base/android/locale_utils.h"
21 #include "base/android/memory_pressure_listener_android.h"
22 #include "base/android/path_service_android.h"
23 #include "base/android/path_utils.h"
24 #include "base/android/record_histogram.h"
25 #include "base/android/sys_utils.h"
26 #include "base/android/thread_utils.h"
27 #include "base/android/trace_event_binding.h"
28 #include "base/basictypes.h"
29 #include "base/message_loop/message_pump_android.h"
30 #include "base/power_monitor/power_monitor_device_source_android.h"
31 #include "base/trace_event/trace_event.h"
33 namespace base {
34 namespace android {
36 static RegistrationMethod kBaseRegisteredMethods[] = {
37 {"AnimationFrameTimeHistogram",
38 base::android::RegisterAnimationFrameTimeHistogram},
39 {"ApplicationStatusListener",
40 base::android::ApplicationStatusListener::RegisterBindings},
41 {"BuildInfo", base::android::BuildInfo::RegisterBindings},
42 {"CommandLine", base::android::RegisterCommandLine},
43 {"ContentUriUtils", base::RegisterContentUriUtils},
44 {"CpuFeatures", base::android::RegisterCpuFeatures},
45 {"EventLog", base::android::RegisterEventLog},
46 {"FieldTrialList", base::android::RegisterFieldTrialList},
47 {"ImportantFileWriterAndroid",
48 base::android::RegisterImportantFileWriterAndroid},
49 {"JNIUtils", base::android::RegisterJNIUtils},
50 {"LocaleUtils", base::android::RegisterLocaleUtils},
51 {"MemoryPressureListenerAndroid",
52 base::android::MemoryPressureListenerAndroid::Register},
53 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
54 {"PathService", base::android::RegisterPathService},
55 {"PathUtils", base::android::RegisterPathUtils},
56 {"PowerMonitor", base::RegisterPowerMonitor},
57 {"RecordHistogram", base::android::RegisterRecordHistogram},
58 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
59 {"SysUtils", base::android::SysUtils::Register},
60 {"ThreadUtils", base::RegisterThreadUtils},
61 {"TraceEvent", base::android::RegisterTraceEvent},
64 bool RegisterJni(JNIEnv* env) {
65 TRACE_EVENT0("startup", "base_android::RegisterJni");
66 return RegisterNativeMethods(env, kBaseRegisteredMethods,
67 arraysize(kBaseRegisteredMethods));
70 } // namespace android
71 } // namespace base