Giter Club home page Giter Club logo

cefcapi's Introduction

CEF C API (cefcapi)

A simple example on how to use the C API in Chromium Embedded Framework created by Czarek Tomczak. Example creates a window, embeds a browser inside that window and loads Google website. Shows how to implement dummy reference counting and CEF structures with callbacks to implement CEF handlers like cef_app_t, cef_client_t and cef_life_span_handler_t. To understand and implement real reference counting see the UsingTheCAPI wiki page in upstream CEF project.

Table of contents:

Examples

Compatibility

Tested configurations:

  • Windows:
    • Binary: cef_binary_3.3202.1692.g18a939d_windows32.tar.bz2
    • Compilers: mingw-gcc 5.3.0 and TDM-gcc 5.1.0 on Windows 7 64-bit
  • Linux:
    • Binary: cef_binary_3.3202.1692.g18a939d_linux64.tar.bz2
    • Compiler: Linux: gcc 4.8.2 on Ubuntu 14.04 64-bit
    • Compiler: gcc 6.3.0 on Debian 9.2 (stretch) 64-bit

Getting started

  1. Download "Standard Distribution" binaries from Spotify Automated Builds for the supported CEF version mentioned in the Compatibility section above: http://opensource.spotify.com/cefbuilds/index.html
  2. Create cefcapi/Release/ directory
  3. Copy cef_binary*/Release/* to cefcapi/Release/
  4. Copy cef_binary*/Resources/* to cefcapi/Release/
  5. On Linux run "make gtk2" (GTK+ 2 example) or "make gtk3" (GTK+ 3 example) in the root directory. Note that you may need to build CEF with "use_gtk3=true" to link it with GTK+ 3.
  6. On Windows run the "build.bat" script in the root directory

Support development

If you would like to support general CEF C API development efforts by making a donation please click the Paypal Donate button:



Updating CEF version

If you download a CEF version newer than 3.3202.1692 then apart from copying binaries to cefcapi/Release/ directory you will also have to update the include/ directory with CEF header files.

In the include/ directory you can find two files: "cef_version_win.h" and "cef_version_linux.h" - these header files were copied from CEF binary distributions for appropriate platforms and their original file names were "cef_version.h".

cefcapi's People

Contributors

cztomczak avatar jiri-janousek avatar perlun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.