Skip to content

Instantly share code, notes, and snippets.

@darkfall
Created July 24, 2013 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkfall/6074996 to your computer and use it in GitHub Desktop.
Save darkfall/6074996 to your computer and use it in GitHub Desktop.
Some libCef3 and CefGlue notes
CefClient -> Handlers
RequestHandler: can be used as QNetworkAccessManager
-> OnBeforeResourceLoad(.., .., request)
-> request.GetHeaderMap()
-> request.Url
ContextMenuHandler: handle context menu here
-> OnBeforeContextMenu(.., .., .., model)
-> model.AddItem(id, caption)
-> ...
-> OnContextMenuCommand(.., .., state, id, flags)
User defined menu command id should between MENU_ID_USER_FIRST(26500) and MENU_ID_USER_LAST(28500) (libcef3/cef_types.h, line 943 - 947)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment