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

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

Issue 1132663004: Chromecast: adds Android implementation of CastSysInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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 | « no previous file | chromecast/base/cast_sys_info_android.h » ('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 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 "chromecast/android/cast_metrics_helper_android.h" 9 #include "chromecast/android/cast_metrics_helper_android.h"
10 #include "chromecast/base/cast_sys_info_android.h"
10 #include "chromecast/browser/android/cast_window_android.h" 11 #include "chromecast/browser/android/cast_window_android.h"
11 #include "chromecast/browser/android/cast_window_manager.h" 12 #include "chromecast/browser/android/cast_window_manager.h"
12 #include "chromecast/crash/android/crash_handler.h" 13 #include "chromecast/crash/android/crash_handler.h"
13 #include "components/external_video_surface/component_jni_registrar.h" 14 #include "components/external_video_surface/component_jni_registrar.h"
14 15
15 namespace chromecast { 16 namespace chromecast {
16 namespace android { 17 namespace android {
17 18
18 namespace { 19 namespace {
19 20
20 static base::android::RegistrationMethod kMethods[] = { 21 static base::android::RegistrationMethod kMethods[] = {
21 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, 22 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni },
23 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
22 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, 24 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
23 { "CastWindowManager", shell::RegisterCastWindowManager }, 25 { "CastWindowManager", shell::RegisterCastWindowManager },
24 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, 26 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
25 { "ExternalVideoSurfaceContainer", 27 { "ExternalVideoSurfaceContainer",
26 external_video_surface::RegisterExternalVideoSurfaceJni }, 28 external_video_surface::RegisterExternalVideoSurfaceJni },
27 }; 29 };
28 30
29 } // namespace 31 } // namespace
30 32
31 bool RegisterJni(JNIEnv* env) { 33 bool RegisterJni(JNIEnv* env) {
32 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); 34 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
33 } 35 }
34 36
35 } // namespace android 37 } // namespace android
36 } // namespace chromecast 38 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | chromecast/base/cast_sys_info_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698