/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
// Creates and returns the drag image for a drag. aImagePoint will be set to // the origin of the drag relative to mNativeDragView.
NSImage* ConstructDragImage(
nsINode* aDOMNode, const mozilla::Maybe<mozilla::CSSIntRegion>& aRegion,
NSPoint* aImagePoint);
// Creates and returns the drag image for a drag. aPoint should be the origin // of the drag, for example the mouse coordinate of the mousedown event. // aDragRect will be set the area of the drag relative to this.
NSImage* ConstructDragImage(
nsINode* aDOMNode, const mozilla::Maybe<mozilla::CSSIntRegion>& aRegion,
mozilla::CSSIntPoint aPoint, mozilla::LayoutDeviceIntRect* aDragRect);
nsCOMPtr<nsIArray> mDataItems; // only valid for a drag started within gecko
// Native widget object that this drag is over.
ChildView* mNativeDragView = nil; // The native drag session object for this drag.
NSDraggingSession* mNSDraggingSession = nil;
NSEvent* mNativeDragEvent = nil;
bool mDragImageChanged = false;
};
/** * Cocoa native nsIDragService implementation
*/ class nsDragService final : public nsBaseDragService { public:
already_AddRefed<nsIDragSession> CreateDragSession() override;
};
#endif// nsDragService_h_
¤ Dauer der Verarbeitung: 0.29 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.