summaryrefslogtreecommitdiffstats
path: root/ui/android/ui_android_jni_registrar.cc
diff options
context:
space:
mode:
authorjaekyun <jaekyun@chromium.org>2014-12-04 08:19:13 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-04 16:19:31 +0000
commitd5de7e4469af397027ca13927c4426baec270d4e (patch)
tree1d0bfcd0dce30bac7faf19d6f79cf1ab3e7898fd /ui/android/ui_android_jni_registrar.cc
parentce662dde5e552e08c14dbb432c05a554e46b1534 (diff)
downloadchromium_src-d5de7e4469af397027ca13927c4426baec270d4e.zip
chromium_src-d5de7e4469af397027ca13927c4426baec270d4e.tar.gz
chromium_src-d5de7e4469af397027ca13927c4426baec270d4e.tar.bz2
Upstream ResourceManager
And expose ResourceManager through the Compositor interface. https://chrome-internal-review.googlesource.com/184331/ is a counter part in downstream. BUG=426939 Review URL: https://codereview.chromium.org/731133002 Cr-Commit-Position: refs/heads/master@{#306830}
Diffstat (limited to 'ui/android/ui_android_jni_registrar.cc')
-rw-r--r--ui/android/ui_android_jni_registrar.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/android/ui_android_jni_registrar.cc b/ui/android/ui_android_jni_registrar.cc
new file mode 100644
index 0000000..e0e1fd6
--- /dev/null
+++ b/ui/android/ui_android_jni_registrar.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/android/ui_android_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "ui/android/resources/resource_manager.h"
+
+namespace ui {
+
+static base::android::RegistrationMethod kAndroidRegisteredMethods[] = {
+ {"ResourceManager", ui::ResourceManager::RegisterResourceManager},
+};
+
+bool RegisterUIAndroidJni(JNIEnv* env) {
+ return RegisterNativeMethods(env, kAndroidRegisteredMethods,
+ arraysize(kAndroidRegisteredMethods));
+}
+
+} // namespace ui