Bug 1413217 - Fix some includes etc. in widget code. r=jimm

MozReview-Commit-ID: 8bW6WIPMun4
This commit is contained in:
Jonathan Watt 2017-10-12 17:03:35 +01:00
parent f10fc1e787
commit 2322aebae3
8 changed files with 16 additions and 8 deletions

View File

@ -13,6 +13,7 @@
#include "mozilla/Maybe.h"
#include "mozilla/NotNull.h"
#include "nsCOMPtr.h"
#include "nsIURI.h"
class nsPresContext;
class nsIPresShell;
namespace mozilla {

View File

@ -3,6 +3,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "InProcessCompositorWidget.h"
#include "mozilla/VsyncDispatcher.h"
#include "nsBaseWidget.h"
#if defined(MOZ_WIDGET_ANDROID) && !defined(MOZ_WIDGET_SUPPORTS_OOP_COMPOSITING)

View File

@ -6,6 +6,7 @@
#include "InputData.h"
#include "mozilla/dom/Touch.h"
#include "mozilla/TextEvents.h"
#include "nsContentUtils.h"
#include "nsDebug.h"
#include "nsThreadUtils.h"

View File

@ -8,16 +8,17 @@
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/dom/ContentParent.h"
#include "mozilla/dom/DOMTypes.h"
#include "mozilla/Logging.h"
#include "mozilla/StaticPtr.h"
static LazyLogModule sScreenLog("WidgetScreen");
NS_IMPL_ISUPPORTS(ScreenManager, nsIScreenManager)
static mozilla::LazyLogModule sScreenLog("WidgetScreen");
namespace mozilla {
namespace widget {
NS_IMPL_ISUPPORTS(ScreenManager, nsIScreenManager)
ScreenManager::ScreenManager()
{
}
@ -78,7 +79,7 @@ template<class Range>
void
ScreenManager::CopyScreensToRemoteRange(Range aRemoteRange)
{
AutoTArray<ScreenDetails, 4> screens;
AutoTArray<dom::ScreenDetails, 4> screens;
for (auto& screen : mScreenList) {
screens.AppendElement(screen->ToScreenDetails());
}
@ -92,7 +93,7 @@ ScreenManager::CopyScreensToRemoteRange(Range aRemoteRange)
}
void
ScreenManager::CopyScreensToRemote(ContentParent* aContentParent)
ScreenManager::CopyScreensToRemote(dom::ContentParent* aContentParent)
{
MOZ_ASSERT(aContentParent);
MOZ_ASSERT(XRE_IsParentProcess());
@ -110,7 +111,7 @@ ScreenManager::CopyScreensToAllRemotesIfIsParent()
MOZ_LOG(sScreenLog, LogLevel::Debug, ("Refreshing all ContentParents"));
CopyScreensToRemoteRange(ContentParent::AllProcesses(ContentParent::eLive));
CopyScreensToRemoteRange(dom::ContentParent::AllProcesses(dom::ContentParent::eLive));
}
// Returns the screen that contains the rectangle. If the rect overlaps

View File

@ -7,8 +7,7 @@
#include "mozilla/Attributes.h" // for MOZ_RAII
#include "mozilla/StaticPtr.h" // for StaticRefPtr
class nsIContent;
#include "nsIContent.h"
namespace mozilla {
namespace widget {

View File

@ -13,6 +13,7 @@
#include "nsIObserverService.h"
#include "nsServiceManagerUtils.h"
#include "mozilla/Services.h"
#include "nsXULAppAPI.h"
// When processing the next thread event, the appshell may process native
// events (if not in performance mode), which can result in suppressing the

View File

@ -8,6 +8,7 @@
#include "nsIClipboard.h"
#include "nsITransferable.h"
#include "nsCOMPtr.h"
class nsITransferable;
class nsIClipboardOwner;

View File

@ -16,6 +16,8 @@
using mozilla::ipc::Shmem;
using mozilla::dom::TabChild;
using mozilla::dom::OptionalShmem;
using mozilla::LayoutDeviceIntRect;
using mozilla::Maybe;
NS_IMPL_ISUPPORTS_INHERITED0(nsDragServiceProxy, nsBaseDragService)