OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ | |
6 #define COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ | |
7 | |
8 #include "base/android/jni_android.h" | |
9 | |
10 class BookmarkModel; | |
11 | |
12 using base::android::ScopedJavaLocalRef; | |
Yaron
2014/08/13 20:39:48
nit: inline
Kibeom Kim (inactive)
2014/08/14 01:04:12
Done.
| |
13 | |
14 namespace enhanced_bookmarks { | |
15 namespace android { | |
16 | |
17 class EnhancedBookmarksBridge { | |
18 public: | |
19 EnhancedBookmarksBridge(JNIEnv* env, jobject obj, jlong bookmark_model_ptr); | |
20 void Destroy(JNIEnv*, jobject); | |
21 | |
22 ScopedJavaLocalRef<jstring> GetBookmarkDescription(JNIEnv* env, | |
23 jobject obj, | |
24 jlong id, | |
25 jint type); | |
26 | |
27 void SetBookmarkDescription(JNIEnv* env, | |
28 jobject obj, | |
29 jlong id, | |
30 jint type, | |
31 jstring description); | |
32 | |
33 private: | |
34 BookmarkModel* bookmark_model_; // weak | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); | |
37 }; | |
38 | |
39 bool RegisterEnhancedBookmarksBridge(JNIEnv* env); | |
40 | |
41 } // namespace android | |
42 } // namespace enhanced_bookmarks | |
43 | |
44 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ | |
OLD | NEW |