Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/accessible/windows/msaa/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  MsaaIdGenerator.h   Sprache: C

 

/* 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/. */


#ifndef mozilla_a11y_MsaaIdGenerator_h
#define mozilla_a11y_MsaaIdGenerator_h

#include "mozilla/a11y/IDSet.h"

#include "mozilla/NotNull.h"
#include "nsITimer.h"

namespace mozilla {
namespace a11y {

class MsaaAccessible;

/**
 * This class is responsible for generating child IDs used by our MSAA
 * implementation.
 */

class MsaaIdGenerator {
 public:
  uint32_t GetID();
  void ReleaseID(NotNull<MsaaAccessible*> aMsaaAcc);

 private:
  bool ReleaseID(uint32_t aID);
  void ReleasePendingIDs();
  static void ReleasePendingIdsCallback(nsITimer* aTimer, void* aClosure);

 private:
  static constexpr uint32_t kNumFullIDBits = 31UL;
  IDSet mIDSet{kNumFullIDBits};
  nsTArray<uint32_t> mIDsToRelease;
  nsCOMPtr<nsITimer> mReleaseIDTimer;
  // Whether GetID has been called yet this session.
  bool mGetIDCalled = false;
};

}  // namespace a11y
}  // namespace mozilla

#endif  // mozilla_a11y_MsaaIdGenerator_h

Messung V0.5 in Prozent
C=88 H=100 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-09-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.