michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "TabParent.h" michael@0: michael@0: // TabParent.h transitively includes , which does michael@0: // #define CreateEvent CreateEventW michael@0: // That messes up our call to EventDispatcher::CreateEvent below. michael@0: michael@0: #ifdef CreateEvent michael@0: #undef CreateEvent michael@0: #endif michael@0: michael@0: #include "BrowserElementParent.h" michael@0: #include "mozilla/EventDispatcher.h" michael@0: #include "mozilla/dom/HTMLIFrameElement.h" michael@0: #include "nsIDOMCustomEvent.h" michael@0: #include "nsIInterfaceRequestorUtils.h" michael@0: #include "nsVariant.h" michael@0: #include "mozilla/dom/BrowserElementDictionariesBinding.h" michael@0: #include "nsCxPusher.h" michael@0: #include "GeneratedEventClasses.h" michael@0: michael@0: using namespace mozilla; michael@0: using namespace mozilla::dom; michael@0: michael@0: namespace { michael@0: michael@0: using mozilla::BrowserElementParent; michael@0: /** michael@0: * Create an