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