/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* 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/. */
nsCOMPtr<nsIStringBundle> stringBundle;
nsCOMPtr<nsIStringBundleService> sbs = components::StringBundle::Service(); if (NS_FAILED(rv)) {
NS_WARNING("Failed to get string bundle service"); return;
}
rv = sbs->CreateBundle(ROLE_STRINGS_URL, getter_AddRefs(stringBundle)); if (NS_FAILED(rv)) {
NS_WARNING("Failed to get string bundle"); return;
}
nsString localizedStr; // Preload the state required localized string.
rv = stringBundle->GetStringFromName("stateRequired", localizedStr); if (NS_SUCCEEDED(rv)) {
sLocalizedStrings.InsertOrUpdate(u"stateRequired"_ns, localizedStr);
}
if (!aTarget->IsDoc() && !aFromUser && !aIsSelectionCollapsed) { // Pivot to the caret's position if it has an expanded selection. // This is used mostly for find in page.
Accessible* leaf = TextLeafPoint::GetCaret(aTarget).mAcc;
MOZ_ASSERT(leaf); if (leaf) { if (Accessible* result = AccessibleWrap::DoPivot(
leaf, java::SessionAccessibility::HTML_GRANULARITY_DEFAULT, true, true)) {
sessionAcc->SendAccessibilityFocusedEvent(result, false);
}
}
}
void a11y::PlatformShowHideEvent(Accessible* aTarget, Accessible* aParent, bool aInsert, bool aFromUser) { // We rely on the window content changed events to be dispatched // after the viewport cache is refreshed.
}
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.