Changes between Version 7 and Version 8 of WebKitGTK/AddingNewWebKit2API


Ignore:
Timestamp:
Nov 23, 2012 6:31:18 AM (9 years ago)
Author:
Carlos Garcia Campos
Comment:

Add rules to not use the C API

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/AddingNewWebKit2API

    v7 v8  
    8181.......
    8282 }}}
     83 * Don't use the C API except for the C client callbacks
     84  * Use toImpl() to pass C API pointers to other methods from the client callbacks
     85  * Use toAPI() to pass objects back to C client callbacks
     86  {{{
     87static WKPageRef createNewPage(WKPageRef page, WKURLRequestRef, WKDictionaryRef wkWindowFeatures, WKEventModifiers, WKEventMouseButton, const void* clientInfo)
     88{
     89    return static_cast<WKPageRef>(toAPI(webkitWebViewCreateNewPage(WEBKIT_WEB_VIEW(clientInfo), toImpl(wkWindowFeatures))));
     90}
     91  }}}
    8392 * Don't expose the C API in public API or headers
    8493 * Including other headers: