Ejemplo n.º 1
0
void HTMLDialogElement::show()
{
    if (fastHasAttribute(openAttr))
        return;
    setBooleanAttribute(openAttr, true);

    // The layout must be updated here because setFocusForDialog calls
    // Element::isFocusable, which requires an up-to-date layout.
    document().updateLayoutIgnorePendingStylesheets();

    setFocusForDialog(this);
}
Ejemplo n.º 2
0
void HTMLDialogElement::closeDialog(const String& returnValue)
{
    if (!fastHasAttribute(openAttr))
        return;
    setBooleanAttribute(openAttr, false);

    HTMLDialogElement* activeModalDialog = document().activeModalDialog();
    document().removeFromTopLayer(this);
    if (activeModalDialog == this)
        inertSubtreesChanged(document());

    if (!returnValue.isNull())
        m_returnValue = returnValue;

    dispatchScopedEvent(Event::create(EventTypeNames::close));
}
Ejemplo n.º 3
0
void HTMLDialogElement::showModal(ExceptionState& exceptionState)
{
    if (fastHasAttribute(openAttr)) {
        exceptionState.throwDOMException(InvalidStateError, "The element already has an 'open' attribute, and therefore cannot be opened modally.");
        return;
    }
    if (!inShadowIncludingDocument()) {
        exceptionState.throwDOMException(InvalidStateError, "The element is not in a Document.");
        return;
    }

    document().addToTopLayer(this);
    setBooleanAttribute(openAttr, true);

    // Throw away the AX cache first, so the subsequent steps don't have a chance of queuing up
    // AX events on objects that would be invalidated when the cache is thrown away.
    inertSubtreesChanged(document());

    forceLayoutForCentering();
    setFocusForDialog(this);
}
Ejemplo n.º 4
0
void ManifestTool::setUseUnicodeResponseFiles(bool enable)
{
    setBooleanAttribute("UseUnicodeResponseFiles", enable, useUnicodeResponseFilesDefault());
}
Ejemplo n.º 5
0
void ManifestTool::setVerboseOutput(bool enable)
{
    setBooleanAttribute("VerboseOutput", enable, verboseOutputDefault());
}
Ejemplo n.º 6
0
void ManifestTool::setSuppressStartupBanner(bool suppress)
{
    setBooleanAttribute("SuppressStartupBanner", suppress, suppressStartupBannerDefault());
}
Ejemplo n.º 7
0
void ManifestTool::setUpdateFileHashes(bool update)
{
    setBooleanAttribute("UpdateFileHashes", update, updateFileHashesDefault());
}
Ejemplo n.º 8
0
void ManifestTool::setGenerateCatalogFiles(bool generate)
{
    setBooleanAttribute("GenerateCatalogFiles", generate, generateCatalogFilesDefault());
}
Ejemplo n.º 9
0
void ManifestTool::setEmbedManifest(bool enable)
{
    setBooleanAttribute("EmbedManifest", enable, embedManifestDefault());
}
Ejemplo n.º 10
0
void ManifestTool::setUseFAT32Workaround(bool enable)
{
    setBooleanAttribute("UseFAT32Workaround", enable, useFAT32WorkaroundDefault());
}
void BrowseInformationTool::setSuppressStartupBanner(bool suppress)
{
    setBooleanAttribute("SuppressStartupBanner", suppress, suppressStartupBannerDefault());
}
Ejemplo n.º 12
0
void PostBuildEventTool::setExcludedFromBuild(bool excludedFromBuild)
{
    setBooleanAttribute("ExcludedFromBuild", excludedFromBuild, excludedFromBuildDefault());
}
Ejemplo n.º 13
0
void HTMLDialogElement::show()
{
    if (fastHasAttribute(openAttr))
        return;
    setBooleanAttribute(openAttr, true);
}