OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ |
6 #define CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_weak_ref.h" | 9 #include "base/android/jni_weak_ref.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 EnhancedBookmarksBridge(JNIEnv* env, jobject obj, Profile* profile); | 22 EnhancedBookmarksBridge(JNIEnv* env, jobject obj, Profile* profile); |
23 void Destroy(JNIEnv*, jobject); | 23 void Destroy(JNIEnv*, jobject); |
24 | 24 |
25 void SalientImageForUrl(JNIEnv* env, | 25 void SalientImageForUrl(JNIEnv* env, |
26 jobject obj, | 26 jobject obj, |
27 jstring j_url, | 27 jstring j_url, |
28 jobject j_callback); | 28 jobject j_callback); |
29 | 29 |
30 void FetchImageForTab(JNIEnv* env, jobject obj, jobject j_web_contents); | 30 void FetchImageForTab(JNIEnv* env, jobject obj, jobject j_web_contents); |
31 | 31 |
32 base::android::ScopedJavaLocalRef<jstring> GetBookmarkDescription( | |
33 JNIEnv* env, | |
34 jobject obj, | |
35 jlong id, | |
36 jint type); | |
37 void SetBookmarkDescription(JNIEnv* env, | |
38 jobject obj, | |
39 jlong id, | |
40 jint type, | |
41 jstring description); | |
42 | |
43 base::android::ScopedJavaLocalRef<jobject> AddFolder(JNIEnv* env, | 32 base::android::ScopedJavaLocalRef<jobject> AddFolder(JNIEnv* env, |
44 jobject obj, | 33 jobject obj, |
45 jobject j_parent_id_obj, | 34 jobject j_parent_id_obj, |
46 jint index, | 35 jint index, |
47 jstring j_title); | 36 jstring j_title); |
48 | 37 |
49 void MoveBookmark(JNIEnv* env, | 38 void MoveBookmark(JNIEnv* env, |
50 jobject obj, | 39 jobject obj, |
51 jobject j_bookmark_id_obj, | 40 jobject j_bookmark_id_obj, |
52 jobject j_parent_id_obj); | 41 jobject j_parent_id_obj); |
(...skipping 15 matching lines...) Expand all Loading... |
68 Profile* profile_; // weak | 57 Profile* profile_; // weak |
69 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); | 58 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); |
70 }; | 59 }; |
71 | 60 |
72 bool RegisterEnhancedBookmarksBridge(JNIEnv* env); | 61 bool RegisterEnhancedBookmarksBridge(JNIEnv* env); |
73 | 62 |
74 } // namespace android | 63 } // namespace android |
75 } // namespace enhanced_bookmarks | 64 } // namespace enhanced_bookmarks |
76 | 65 |
77 #endif // CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H
_ | 66 #endif // CHROME_BROWSER_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H
_ |
OLD | NEW |