/* -*- Mode: C++; tab-width: 4; 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/. */
using mozilla::CSSIntRegion; using mozilla::LayoutDeviceIntRect; using mozilla::Maybe; using mozilla::Nothing; using mozilla::Some; using mozilla::dom::BrowserChild; using mozilla::gfx::DataSourceSurface; using mozilla::gfx::SourceSurface; using mozilla::gfx::SurfaceFormat; using mozilla::ipc::Shmem;
nsCOMPtr<nsIPrincipal> principal; if (mSourceNode) {
principal = mSourceNode->NodePrincipal();
}
nsCOMPtr<nsIContentSecurityPolicy> csp; if (mSourceDocument) {
csp = mSourceDocument->GetCsp(); // XXX why do we need this here? Shouldn't they be set properly in // nsBaseDragService already?
mSourceWindowContext = mSourceDocument->GetWindowContext();
mSourceTopWindowContext = mSourceWindowContext
? mSourceWindowContext->TopWindowContext()
: nullptr;
}
nsresult nsDragSessionProxy::EndDragSessionImpl(bool aDoneDrag,
uint32_t aKeyModifiers) { // End the drag session before removing it from its BrowserChild(s). This // leaves the drag session in place while EndDragSessionImpl sends dragend.
nsresult rv = nsBaseDragSession::EndDragSessionImpl(aDoneDrag, aKeyModifiers);
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.