Page 1 of 1

Does CEF3 provides API for Bookmark (Favorite) implement?

PostPosted: Mon Apr 16, 2012 8:42 am
by georgechen
I would like to implement Bookmark (My Favorite) function in my CEF based browser.
Does CEF3 provides API for Bookmark (Favorite) implementation?
If I should make it from scratch, where is the good point to start ?

Re: Does CEF3 provides API for Bookmark (Favorite) implement?

PostPosted: Mon Apr 16, 2012 8:57 am
by magreenblatt
Bookmarks are a user interface feature that will not be provided by CEF. You can implement them in your application using whatever approach you like.

Re: Does CEF3 provides API for Bookmark (Favorite) implement

PostPosted: Thu May 13, 2021 8:11 am
by ryadav03
Hello CEF community
I have a question for my CEF based browser , is it possbile to implement Bookmark feature in it ?

Re: Does CEF3 provides API for Bookmark (Favorite) implement

PostPosted: Thu May 13, 2021 11:08 am
by HarmlessDave
ryadav03 wrote:Hello CEF community
I have a question for my CEF based browser , is it possbile to implement Bookmark feature in it ?


Yes, if you do it all yourself. You can get the current page URL by tracking navigation events or from { CefRefPtr<CefFrame> frame = browser->GetMainFrame(); std::string strURL = frame->GetURL(); } . You'll need to create the user interface and persistent storage for the lists of bookmarks.

Re: Does CEF3 provides API for Bookmark (Favorite) implement

PostPosted: Thu May 13, 2021 11:36 pm
by ryadav03
Thanks for your reply @HarmlessDave.
Some more queries we have related to bookmark feature @magreenblatt:
1. If we raise a PR related to bookmark feature, will it be accepted in CEF forum ?
2. We can introduce a command line argument option to toggle between feature,
bookmark feature will work only with below command line option --enable-bookmark ?

Re: Does CEF3 provides API for Bookmark (Favorite) implement

PostPosted: Fri May 14, 2021 8:55 am
by magreenblatt
No, it would not be accepted. Note that the new/experimental Chrome runtime mode does support bookmarks. See https://bitbucket.org/chromiumembedded/ ... -callbacks

Re: Does CEF3 provides API for Bookmark (Favorite) implement

PostPosted: Fri May 14, 2021 11:57 am
by ryadav03
Thanks @magreenblatt