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

Side by Side Diff: chromecast/android/cast_jni_registrar.cc

Issue 2199973003: Android JNI gen: Don't emit code for empty RegisterNatives() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: Android JNI gen: Don't emit code for empty RegisterNatives() 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 "chromecast/android/cast_jni_registrar.h" 5 #include "chromecast/android/cast_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chromecast/android/cast_metrics_helper_android.h" 10 #include "chromecast/android/cast_metrics_helper_android.h"
11 #include "chromecast/app/android/crash_handler.h"
12 #include "chromecast/base/android/dumpstate_writer.h"
13 #include "chromecast/base/android/system_time_change_notifier_android.h" 11 #include "chromecast/base/android/system_time_change_notifier_android.h"
14 #include "chromecast/base/cast_sys_info_android.h"
15 #include "chromecast/base/chromecast_config_android.h" 12 #include "chromecast/base/chromecast_config_android.h"
16 #include "chromecast/browser/android/cast_window_android.h"
17 #include "chromecast/browser/android/cast_window_manager.h" 13 #include "chromecast/browser/android/cast_window_manager.h"
18 #include "components/external_video_surface/component_jni_registrar.h" 14 #include "components/external_video_surface/component_jni_registrar.h"
19 15
20 namespace chromecast { 16 namespace chromecast {
21 namespace android { 17 namespace android {
22 18
23 namespace { 19 namespace {
24 20
25 static base::android::RegistrationMethod kMethods[] = { 21 static base::android::RegistrationMethod kMethods[] = {
26 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, 22 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni },
27 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
28 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
29 { "CastWindowManager", shell::RegisterCastWindowManager }, 23 { "CastWindowManager", shell::RegisterCastWindowManager },
30 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni }, 24 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni },
31 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
32 { "DumpstateWriter", DumpstateWriter::RegisterJni },
33 { "ExternalVideoSurfaceContainer", 25 { "ExternalVideoSurfaceContainer",
34 external_video_surface::RegisterExternalVideoSurfaceJni }, 26 external_video_surface::RegisterExternalVideoSurfaceJni },
35 { "SystemTimeChangeNotifierAndroid", 27 { "SystemTimeChangeNotifierAndroid",
36 SystemTimeChangeNotifierAndroid::RegisterJni }, 28 SystemTimeChangeNotifierAndroid::RegisterJni },
37 }; 29 };
38 30
39 } // namespace 31 } // namespace
40 32
41 bool RegisterJni(JNIEnv* env) { 33 bool RegisterJni(JNIEnv* env) {
42 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); 34 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
43 } 35 }
44 36
45 } // namespace android 37 } // namespace android
46 } // namespace chromecast 38 } // namespace chromecast
OLDNEW
« no previous file with comments | « base/android/jni_generator/testNativeExportsOnlyOption.golden ('k') | chromecast/app/android/crash_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698