chromium-embedded

Is Google Chrome embeddable?

给你一囗甜甜゛ 提交于 2019-11-29 22:17:02
I've asked myself if one can embed the google chrome browser engine in an own application. I'm using Delphi 2009. There's an IE ActiveX wrapper component delivered with the IDE. Also, there's a Firefox ActiveX component out there, but it's based on very old code. I'd like to embed the chrome engine. Is there a way to do this? Thanks in advance, David Anton Gogolev Google Chrome is basically WebKit layout engine + nice UI. And WebKit can be embedded . There's also chromium embedded framework (CEF) . And finally, check out Awesomium . Update 2: A very good fit for this would be the new Electron

CefSharp LoadHtml

守給你的承諾、 提交于 2019-11-29 17:32:38
问题 Could someone explain to me how the CefSharp LoadHtml function works? LoadHtml(string html, string url) What do the html and url parameters represent? I am interested in loading a page from a raw HTML string into the CefSharp browser. 回答1: Update: CefSharp has a new LoadHtml(string html) method that loads the HTML as a base64-encoded data URI. It is more reliable that the LoadHtml(string html, string url) method described below. In LoadHtml(string html, string url) : html is your HTML string,

CEF Simulate Mousedown and Keysend

别说谁变了你拦得住时间么 提交于 2019-11-29 15:28:57
问题 I want to use CEF to control a Flash Application, so I need to simulate MouseDown and KeySend without JavaScript. I am using offscreen rendering. This is what I tried: managedCefBrowserAdapter.OnMouseButton( 500, 500, 0, true, 2, CefEventFlags.LeftMouseButton); or MouseEvent a = new MouseEvent(); a.Modifiers = CefEventFlags.LeftMouseButton; a.X = 500; a.Y = 500; or managedCefBrowserAdapter.SendKeyEvent(0, 0, 0); But nothing works. 回答1: This code works for me. Clicks once on the position 0, 0

Getting Chrome Browser in java Applications

天涯浪子 提交于 2019-11-29 13:26:35
问题 Is there a way to get the Chrome browser inside of java applications similar to the way Awesomium works in C++ and C# applications? 回答1: There is currently no way getting the UI portion into a Java. You should consider just using barebone WebKit + V8 with many JNI calls. You could consider writing a JNA wrapper around those. To make your JNA easier, you can wrap Chromium Embedded Framework 回答2: There's a Java Wrapper for the Chromium Embedded Framework (CEF). 回答3: Try javacef. This is open

CefSharp 3 set proxy at Runtime

纵饮孤独 提交于 2019-11-29 07:44:42
I downloaded CEF (chromuim embedded framework) binary distributation that comes with (cefclient & cefsimple) c++ examples, And Realized that cefclient can change proxy settings on run-time. And the key to do that is to Grab the RequestContext and call the function SetPreference. on CefClient all works just nice. but on CefSharp calling SetPreference always returns false, and also HasPreference returns false for the preference name "proxy". Aladdin thanks to amaitland the proper way to actively inforce changing the request-context prefrences, is to run the code on CEF UIThread as following: Cef

Debugging JavaScript in Chromium Embedded Framework

蓝咒 提交于 2019-11-29 06:05:51
问题 I have a WPF application which uses CEF to display web content. My question is, is there a way to debug the Javascript/Web parts inside a WPF application? 回答1: Enable remote debugging in your application: C# (CefSharp) CefSettings.RemoteDebuggingPort = 8088; C++ CefSettings settings; settings.remote_debugging_port = 8088; then run your app and point your browser to http://localhost:8088/ to access the Chromium developer console (the same you have in Chrome with Ctrl+Shift+j ) 回答2: You may

How to handle popup links in CefSharp

…衆ロ難τιáo~ 提交于 2019-11-29 01:56:51
I am creating a tabbed web browser using CefSharp 39.0.2 . Right now, if the user clicks on a link on a website, it will open a new window that has none of my original UI. For example, when you click on an article link on Google News, it opens in a new window, but without any of the browsing controls I have made up. I also looked into the Cef.WinForms.Example program, and it does the same exact thing. Is it possible to handle this in a different way? I would like for the link to either open in a new tab, or open in a new window (with all the controls there). I have been looking through the

cefsharp execute javascript

时光总嘲笑我的痴心妄想 提交于 2019-11-28 23:27:58
I want to execute JavaScript code by using CefSharp in Windows Forms, but it does not work. The code is as following, and the message test is not shown. Did I miss something? var browser = new ChromiumWebBrowser("http://localhost:50056/simple.aspx"); browser.Name = "Simple Page"; browser.Dock = DockStyle.Fill; this.Controls.Add(browser); browser.ExecuteScriptAsync("alert('test');"); You must wait for the browser to have sufficiently loaded before executing JavaScript. It's tempting to start trying to access the DOM in OnFrameLoadStart, whilst the V8Context will have been created and you will

CefSharp 3 set proxy at Runtime

拟墨画扇 提交于 2019-11-28 01:19:25
问题 I downloaded CEF (chromuim embedded framework) binary distributation that comes with (cefclient & cefsimple) c++ examples, And Realized that cefclient can change proxy settings on run-time. And the key to do that is to Grab the RequestContext and call the function SetPreference. on CefClient all works just nice. but on CefSharp calling SetPreference always returns false, and also HasPreference returns false for the preference name "proxy". 回答1: thanks to amaitland the proper way to actively

How to handle popup links in CefSharp

风流意气都作罢 提交于 2019-11-27 16:12:56
问题 I am creating a tabbed web browser using CefSharp 39.0.2 . Right now, if the user clicks on a link on a website, it will open a new window that has none of my original UI. For example, when you click on an article link on Google News, it opens in a new window, but without any of the browsing controls I have made up. I also looked into the Cef.WinForms.Example program, and it does the same exact thing. Is it possible to handle this in a different way? I would like for the link to either open