/* -*- 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/. */
if (MaybeBlockColorPicker(aCallback)) { return NS_OK;
}
if (mCallback) { // It means Open has already been called: this is not allowed
NS_WARNING("mCallback is already set. Open called twice?"); return NS_ERROR_FAILURE;
}
mCallback = aCallback;
if (!mBrowsingContext->Canonical()->CanOpenModalPicker()) { if (aCallback) { // Color pickers are disabled, so we answer the callback with // returnCancel.
aCallback->Done(EmptyString());
} returntrue;
}
returnfalse;
}
¤ Dauer der Verarbeitung: 0.15 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.