-
bfulgham@webkit.org authored
elements and dom window. https://bugs.webkit.org/show_bug.cgi?id=60269 Patch by Anthony Johnson <anthony.johnson@flexsim.com> on 2011-05-18 Reviewed by Brent Fulgham. * DOMCoreClasses.cpp: Add new DOMWindow class and implementations. (DOMNode::QueryInterface): Report that the DOMNode implements the IDomEventTarget interface. (DOMNode::addEventListener): Add implementation of a COM-based event listener. (DOMNode::removeEventListener): (DOMNode::dispatchEvent): (DOMDocument::createInstance): (DOMWindow::QueryInterface): New implementation. (DOMWindow::document): New implementation. (DOMWindow::getComputedStyle): Stub. (DOMWindow::getMatchedCSSRules): Stub. (DOMWindow::devicePixelRatio): Stub. (DOMWindow::addEventListener): New implementation. (DOMWindow::removeEventListener): New implementation. (DOMWindow::dispatchEvent): New implementation. (DOMWindow::DOMWindow): New implementation. (DOMWindow::~DOMWindow): New implementation. (DOMWindow::createInstance): New implementation. * DOMCoreClasses.h: Add new DOMWindow class and declarations. (DOMWindow::AddRef): New declaration. (DOMWindow::Release): New declaration. (DOMWindow::throwException): New declaration. (DOMWindow::callWebScriptMethod): New declaration. (DOMWindow::evaluateWebScript): New declaration. (DOMWindow::removeWebScriptKey): New declaration. (DOMWindow::stringRepresentation): New declaration. (DOMWindow::webScriptValueAtIndex): New declaration. (DOMWindow::setWebScriptValueAtIndex): New declaration. (DOMWindow::setException): New declaration. (DOMWindow::window): New declaration. * DOMEventsClasses.cpp: Add new WebEventListener and implementation. (DOMEventListener::handleEvent): New implementation. (WebEventListener::WebEventListener): New implementation. (WebEventListener::~WebEventListener): New implementation. (WebEventListener::operator==): New implementation. (WebEventListener::handleEvent): New implementation. (WebEventListener::create): New implementation. * DOMEventsClasses.h: Add new WebEventListener class declaration. * Interfaces/IWebFrame.idl: Add new DOMWindow accessor to the main Web Frame interface. * WebFrame.cpp: Add implementation of new DOMWindow creation method. (WebFrame::DOMWindow): * WebFrame.h: Add DOMWindow declaration. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
b383fa1d