Skip to content

amaurel/dolphin-chrome-embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dolphin-chrome-embedded

Dolphin CEF integration.

Setup:

  • clone the repo

  • save a dolphin smalltalk image in ./bin

  • load package ./src/amcef/amcef.pac

  • browse package amcef

Note : cef runtime is provided for a quick startup, it is based on Dartium with DEP policy disabled

CEF3Library default cef_version_infos. #(3 1805 68 0 3440 84)

shell := ShellView new 
			layoutManager: BorderLayout new;
			create; 
			extent: 800@600;
			yourself.
view := CEFView new
			parentView: shell;
			arrangement: #center;
			create; show;
			yourself.
shell show.
 
view setUrl: 'http://www.google.com'.
view executeJavascript: 'alert("hello")'.

view addResourceHandler: (CEFHtmlResourceHandler html: '<html><body bgcolor="white">Hello from Dolphin</body></html>' acceptUrl: [:aUrl |  aUrl = 'http://hello-from-dolphin/index.html' ] ).
view setUrl: 'http://hello-from-dolphin/index.html'.
 

About

Dolphin CEF integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published