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"
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