Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / bookmarks / common / android / bookmark_id.cc
blob5cac9eeaff4c89a888444050ad7f17d536f1e07a
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
3 // found in the LICENSE file.
5 #include "components/bookmarks/common/android/bookmark_id.h"
7 #include "jni/BookmarkId_jni.h"
9 namespace bookmarks {
10 namespace android {
12 long JavaBookmarkIdGetId(JNIEnv* env, jobject obj) {
13 return Java_BookmarkId_getId(env, obj);
16 int JavaBookmarkIdGetType(JNIEnv* env, jobject obj) {
17 return Java_BookmarkId_getType(env, obj);
20 base::android::ScopedJavaLocalRef<jobject> JavaBookmarkIdCreateBookmarkId(
21 JNIEnv* env, jlong id, jint type) {
22 return Java_BookmarkId_createBookmarkId(env, id, type);
25 bool RegisterBookmarkId(JNIEnv* env) {
26 return RegisterNativesImpl(env);
29 } // namespace android
30 } // namespace bookmarks