/* 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 "nsOpenWindowEventDetail.h" #include "nsEventDispatcher.h" #include "nsIDOMCustomEvent.h" #include "nsIInterfaceRequestorUtils.h" #include "nsVariant.h" #include "nsAsyncScrollEventDetail.h" using mozilla::dom::Element; using mozilla::dom::HTMLIFrameElement; using mozilla::dom::TabParent; namespace { /** * Create an