On Thu, Jan 29, 2009 at 12:10 PM, Paweł Prażak <[email protected]> wrote: > I'd really like to help you in some way, (unfortunately I don't have > years of experience in C++ :/ ) and I'd like to try play chromium > code, and try to make a Qt based test-shell, I know it's probably too > difficult for me to do it off hand, but I really would like to try. > So could you give me any hints on where to start? (I'm reading > documentation and code but it's huge and maybe it would be easier to > know where to start) I was thinking of merging somehow QtWebkit port > with chromium or something like that, and thy to run/port QtWebKit > simle demo/test browser.
This will be difficult, but it may be possible: - You will need to port the message pump in base/. This means writing a version of what would happen if you were to call QApplication::exec(). Too much of our code requires our own custom message loop and some of the threading support it has. You might want to get this part down before anything else because I have vague memories of not being able to re-implement the main Qt runloop on one of my side projects. - You will need to modify all of the Qt widget rendering code to draw into a skia buffer. I don't know how difficult this is in Qt. Webkit renders the webpage into this buffer, along with native widgets for the form controls. (So add grabbing the Qt parts of webkit and forking them for Chromium). - The following files came up on a grep of the source tree for gtk and looked particularly relevant: -- base/clipboard_linux.cc -- chrome/common/gfx/chrome_font_gtk.cc -- webkit/glue/webcursor_gtk.cc -- webkit/glue/webkit_glue_gtk.cc -- webkit/tools/test_shell/test_shell_gtk.cc -- webkit/tools/test_shell/test_shell_main.cc -- webkit/tools/test_shell/test_webview_delegate_gtk.cc -- webkit/tools/test_shell/webwidget_host_gtk.cc Again, difficult, but if you can get the message pump working, probably doable. -- Elliot --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
