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

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: 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
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/base/cast_sys_info_android.h"
9 #include "chromecast/browser/android/cast_window_android.h" 10 #include "chromecast/browser/android/cast_window_android.h"
10 #include "chromecast/browser/android/cast_window_manager.h" 11 #include "chromecast/browser/android/cast_window_manager.h"
11 #include "chromecast/crash/android/crash_handler.h" 12 #include "chromecast/crash/android/crash_handler.h"
12 #include "components/external_video_surface/component_jni_registrar.h" 13 #include "components/external_video_surface/component_jni_registrar.h"
13 14
14 namespace chromecast { 15 namespace chromecast {
15 namespace android { 16 namespace android {
16 17
17 namespace { 18 namespace {
18 19
19 static base::android::RegistrationMethod kMethods[] = { 20 static base::android::RegistrationMethod kMethods[] = {
21 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
20 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, 22 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
21 { "CastWindowManager", shell::RegisterCastWindowManager }, 23 { "CastWindowManager", shell::RegisterCastWindowManager },
22 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, 24 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
23 { "ExternalVideoSurfaceContainer", 25 { "ExternalVideoSurfaceContainer",
24 external_video_surface::RegisterExternalVideoSurfaceJni }, 26 external_video_surface::RegisterExternalVideoSurfaceJni },
25 }; 27 };
26 28
27 } // namespace 29 } // namespace
28 30
29 bool RegisterJni(JNIEnv* env) { 31 bool RegisterJni(JNIEnv* env) {
30 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); 32 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
31 } 33 }
32 34
33 } // namespace android 35 } // namespace android
34 } // namespace chromecast 36 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | chromecast/base/cast_sys_info_android.h » ('j') | chromecast/base/cast_sys_info_android.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698