by emerick » Thu May 20, 2010 3:44 pm
Hi Marshall,
The one thing I'm having trouble following here is how a client of CEF provides its own handler implementation. For example, let's suppose that I want to provide my own specific "click" handler for a DOM node. Following the design you provided, am I (as a client of CEF) expected to subclass CefWebEventHandler? I guess I'm not understanding how one constructs a CefWebEventHandler and what the implementation of CefWebEventHandler::HandleEvent actually does.
Sorry if this is a dumb question. I've been stuck in C for the past few years, so my object-oriented design skills are still a little rusty at the moment! In C, I'd implement some type of callback function; I'm not sure what the correct paradigm is in C++, however.
Thanks,
Emerick