summaryrefslogtreecommitdiffstats
path: root/ui/android/ui_android_jni_registrar.cc
blob: e0e1fd6bbfd82bb01242375e5a58aad91bb40103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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