зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1510247. Fix some unified build issues in widget code. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D13061 --HG-- extra : rebase_source : 919f43d45fc9bc4fe8502b0acf3d01ed067cdd49
This commit is contained in:
Родитель
0da23d95e8
Коммит
906aa3faf2
|
@ -12,6 +12,7 @@
|
|||
#include "nsUnicharUtils.h"
|
||||
#include "nsExceptionHandler.h"
|
||||
#include "nsCocoaFeatures.h"
|
||||
#include "nsCocoaUtils.h"
|
||||
#include "nsICrashReporter.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include <algorithm>
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
#ifndef RectTextureImage_h_
|
||||
#define RectTextureImage_h_
|
||||
|
||||
#include "GLTypes.h"
|
||||
#include "mozilla/gfx/2D.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
#include "Units.h"
|
||||
|
||||
class MacIOSurface;
|
||||
|
||||
|
@ -16,6 +19,10 @@ namespace gl {
|
|||
class GLContext;
|
||||
} // namespace gl
|
||||
|
||||
namespace layers {
|
||||
class GLManager;
|
||||
} // namespace layers
|
||||
|
||||
namespace widget {
|
||||
|
||||
// Manages a texture which can resize dynamically, binds to the
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include "nsCocoaUtils.h"
|
||||
#include "nsObjCExceptions.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
static LazyLogModule sScreenLog("WidgetScreen");
|
||||
|
||||
@interface ScreenHelperDelegate : NSObject
|
||||
|
|
|
@ -14,7 +14,9 @@
|
|||
#include "nsRefreshDriver.h"
|
||||
#include "Units.h"
|
||||
|
||||
class nsChildView;
|
||||
class nsIPresShell;
|
||||
class nsIWidget;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsTArray.h"
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "mozilla/EventForwards.h"
|
||||
#include "mozilla/TextEventDispatcherListener.h"
|
||||
#include "WritingModes.h"
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "VibrancyManager.h"
|
||||
|
||||
#include "nsChildView.h"
|
||||
#include "nsCocoaFeatures.h"
|
||||
#import <objc/message.h>
|
||||
|
||||
using namespace mozilla;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include "Units.h"
|
||||
#include "nsTArray.h"
|
||||
|
||||
class nsChildView;
|
||||
|
||||
@class NSView;
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -41,7 +43,7 @@ public:
|
|||
/**
|
||||
* Return an NSView from the region, if there is any.
|
||||
*/
|
||||
NSView* GetAnyView() { return mViews.Length() > 0 ? mViews[0] : nil; }
|
||||
NSView* GetAnyView() { return mViews.Length() > 0 ? mViews[0] : NULL; }
|
||||
|
||||
private:
|
||||
mozilla::LayoutDeviceIntRegion mRegion;
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include "ViewRegion.h"
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "nsChildView.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
ViewRegion::~ViewRegion()
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#include "nsIDOMWakeLockListener.h"
|
||||
#include "nsIPowerManagerService.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::widget;
|
||||
|
||||
#define WAKE_LOCK_LOG(...) MOZ_LOG(gMacWakeLockLog, mozilla::LogLevel::Debug, (__VA_ARGS__))
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "nsCocoaUtils.h"
|
||||
#include "nsChildView.h"
|
||||
#include "nsMenuBarX.h"
|
||||
#include "nsCocoaFeatures.h"
|
||||
#include "nsCocoaWindow.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include "nsIDeviceContextSpec.h"
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
|
||||
class nsDeviceContextSpecX : public nsIDeviceContextSpec
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "nsMacSharingService.h"
|
||||
|
||||
#include "jsapi.h"
|
||||
#include "nsCocoaUtils.h"
|
||||
#include "mozilla/MacStringHelpers.h"
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
class nsIURI;
|
||||
class nsIContent;
|
||||
class nsIPrincipal;
|
||||
class imgRequestProxy;
|
||||
class nsMenuObjectX;
|
||||
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
#include "nsIContentPolicy.h"
|
||||
#include "nsComputedDOMStyle.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
using mozilla::dom::Element;
|
||||
using mozilla::gfx::SourceSurface;
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "nsIWidget.h"
|
||||
#include "nsIDocument.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
using mozilla::dom::Event;
|
||||
using mozilla::dom::CallerType;
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "mozilla/EventForwards.h"
|
||||
#include "mozilla/RefPtr.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "nsMenuBaseX.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "plstr.h"
|
||||
|
||||
#include "nsCocoaUtils.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
|
|
|
@ -11,8 +11,12 @@
|
|||
#include "mozilla/gfx/gfxVars.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
#include "mozilla/widget/HeadlessWidgetTypes.h"
|
||||
#include "mozilla/widget/PlatformWidgetTypes.h"
|
||||
#include "nsIScreen.h"
|
||||
#include "HeadlessKeyBindings.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::layers;
|
||||
|
||||
|
|
|
@ -13,9 +13,13 @@
|
|||
#include "mozilla/Unused.h"
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
using mozilla::CSSIntRegion;
|
||||
using mozilla::ipc::Shmem;
|
||||
using mozilla::dom::TabChild;
|
||||
using mozilla::dom::OptionalShmem;
|
||||
using mozilla::gfx::DataSourceSurface;
|
||||
using mozilla::gfx::SourceSurface;
|
||||
using mozilla::gfx::SurfaceFormat;
|
||||
using mozilla::LayoutDeviceIntRect;
|
||||
using mozilla::Maybe;
|
||||
|
||||
|
@ -66,12 +70,11 @@ nsDragServiceProxy::InvokeDragSessionImpl(nsIArray* aArrayTransferables,
|
|||
LayoutDeviceIntRect dragRect;
|
||||
if (mHasImage || mSelection) {
|
||||
nsPresContext* pc;
|
||||
RefPtr<mozilla::gfx::SourceSurface> surface;
|
||||
RefPtr<SourceSurface> surface;
|
||||
DrawDrag(mSourceNode, aRegion, mScreenPosition, &dragRect, &surface, &pc);
|
||||
|
||||
if (surface) {
|
||||
RefPtr<mozilla::gfx::DataSourceSurface> dataSurface =
|
||||
surface->GetDataSurface();
|
||||
RefPtr<DataSourceSurface> dataSurface = surface->GetDataSurface();
|
||||
if (dataSurface) {
|
||||
size_t length;
|
||||
int32_t stride;
|
||||
|
@ -101,9 +104,9 @@ nsDragServiceProxy::InvokeDragSessionImpl(nsIArray* aArrayTransferables,
|
|||
}
|
||||
}
|
||||
|
||||
mozilla::Unused << child->SendInvokeDragSession(dataTransfers, aActionType,
|
||||
mozilla::void_t(), 0, static_cast<gfx::SurfaceFormat>(0), dragRect,
|
||||
principalURISpec);
|
||||
mozilla::Unused << child->SendInvokeDragSession(
|
||||
dataTransfers, aActionType, mozilla::void_t(), 0,
|
||||
static_cast<SurfaceFormat>(0), dragRect, principalURISpec);
|
||||
StartDragSession();
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#ifndef nsIDeviceContextSpec_h___
|
||||
#define nsIDeviceContextSpec_h___
|
||||
|
||||
#include "gfxPoint.h"
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIWidget;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "nsMenuFrame.h"
|
||||
#include "nsRangeFrame.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "mozilla/ComputedStyle.h"
|
||||
#include "mozilla/EventStates.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/HTMLBodyElement.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "nsAlgorithm.h"
|
||||
#include "nsAtom.h"
|
||||
#include "nsColor.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsString.h"
|
||||
#include "nsMargin.h"
|
||||
|
|
|
@ -9,12 +9,11 @@
|
|||
|
||||
#include "mozilla/embedding/PPrinting.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIPrintSettings.h"
|
||||
#include "nsIPrintSettingsService.h"
|
||||
#include "nsString.h"
|
||||
#include "nsFont.h"
|
||||
|
||||
class nsIPrintSettings;
|
||||
|
||||
/**
|
||||
* Class nsPrintSettingsService. Base class for the platform specific widget
|
||||
* subclasses to inherit from.
|
||||
|
|
|
@ -34,6 +34,7 @@ Notes to self:
|
|||
#include "nsIOutputStream.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsILoadContext.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
|
Загрузка…
Ссылка в новой задаче