1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
13 enum UseCounter
: int16_t {
14 eUseCounter_UNKNOWN
= -1,
15 #define USE_COUNTER_DOM_METHOD(interface_, name_) \
16 eUseCounter_##interface_##_##name_,
17 #define USE_COUNTER_DOM_ATTRIBUTE(interface_, name_) \
18 eUseCounter_##interface_##_##name_##_getter, \
19 eUseCounter_##interface_##_##name_##_setter,
20 #define USE_COUNTER_CSS_PROPERTY(name_, id_) eUseCounter_property_##id_,
21 #define USE_COUNTER_CUSTOM(name_, desc_) eUseCounter_custom_##name_,
22 #include "mozilla/dom/UseCounterList.h"
23 #undef USE_COUNTER_DOM_METHOD
24 #undef USE_COUNTER_DOM_ATTRIBUTE
25 #undef USE_COUNTER_CSS_PROPERTY
26 #undef USE_COUNTER_CUSTOM
28 #define DEPRECATED_OPERATION(op_) eUseCounter_##op_,
29 #include "nsDeprecatedOperationList.h"
30 #undef DEPRECATED_OPERATION
35 } // namespace mozilla