mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
1d1d118200
Rather than cache updates thereafter, state will be kept up to date using state change events. Differential Revision: https://phabricator.services.mozilla.com/D129639
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set expandtab shiftwidth=2 tabstop=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/. */
|
|
|
|
#ifndef _CacheConstants_h_
|
|
#define _CacheConstants_h_
|
|
|
|
namespace mozilla {
|
|
namespace a11y {
|
|
|
|
class CacheDomain {
|
|
public:
|
|
static constexpr uint64_t NameAndDescription = ((uint64_t)0x1) << 0;
|
|
static constexpr uint64_t Value = ((uint64_t)0x1) << 1;
|
|
static constexpr uint64_t Bounds = ((uint64_t)0x1) << 2;
|
|
static constexpr uint64_t Resolution = ((uint64_t)0x1) << 3;
|
|
static constexpr uint64_t Text = ((uint64_t)0x1) << 4;
|
|
static constexpr uint64_t DOMNodeID = ((uint64_t)0x1) << 5;
|
|
static constexpr uint64_t State = ((uint64_t)0x1) << 6;
|
|
static constexpr uint64_t All = ~((uint64_t)0x0);
|
|
};
|
|
|
|
enum class CacheUpdateType {
|
|
/*
|
|
* An initial cache push of a loaded document or inserted subtree.
|
|
*/
|
|
Initial,
|
|
|
|
/*
|
|
* An incremental cache push of one or more fields that have changed.
|
|
*/
|
|
Update,
|
|
};
|
|
|
|
} // namespace a11y
|
|
} // namespace mozilla
|
|
|
|
#endif
|