2017-10-27 01:08:41 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2015-02-05 01:00:00 +03:00
|
|
|
/* 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 UseCounter_h_
|
|
|
|
#define UseCounter_h_
|
|
|
|
|
2015-06-03 19:39:18 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2015-02-05 01:00:00 +03:00
|
|
|
namespace mozilla {
|
|
|
|
|
2015-06-03 19:39:18 +03:00
|
|
|
enum UseCounter : int16_t {
|
2015-02-05 01:00:00 +03:00
|
|
|
eUseCounter_UNKNOWN = -1,
|
|
|
|
#define USE_COUNTER_DOM_METHOD(interface_, name_) \
|
|
|
|
eUseCounter_##interface_##_##name_,
|
|
|
|
#define USE_COUNTER_DOM_ATTRIBUTE(interface_, name_) \
|
2015-02-05 20:53:01 +03:00
|
|
|
eUseCounter_##interface_##_##name_##_getter, \
|
|
|
|
eUseCounter_##interface_##_##name_##_setter,
|
2015-02-05 01:00:00 +03:00
|
|
|
#define USE_COUNTER_CSS_PROPERTY(name_, id_) \
|
|
|
|
eUseCounter_property_##id_,
|
2017-08-08 17:01:27 +03:00
|
|
|
#define USE_COUNTER_CUSTOM(name_, desc_) \
|
|
|
|
eUseCounter_custom_##name_,
|
2015-02-05 01:00:00 +03:00
|
|
|
#include "mozilla/dom/UseCounterList.h"
|
|
|
|
#undef USE_COUNTER_DOM_METHOD
|
|
|
|
#undef USE_COUNTER_DOM_ATTRIBUTE
|
|
|
|
#undef USE_COUNTER_CSS_PROPERTY
|
2017-08-08 17:01:27 +03:00
|
|
|
#undef USE_COUNTER_CUSTOM
|
2015-06-17 19:28:26 +03:00
|
|
|
|
|
|
|
#define DEPRECATED_OPERATION(op_) \
|
|
|
|
eUseCounter_##op_,
|
|
|
|
#include "nsDeprecatedOperationList.h"
|
|
|
|
#undef DEPRECATED_OPERATION
|
|
|
|
|
2015-02-05 01:00:00 +03:00
|
|
|
eUseCounter_Count
|
|
|
|
};
|
|
|
|
|
2017-06-20 12:53:10 +03:00
|
|
|
enum IncCounter : int16_t {
|
|
|
|
eIncCounter_UNKNOWN = -1,
|
|
|
|
eIncCounter_ScriptTag,
|
|
|
|
eIncCounter_Count
|
|
|
|
};
|
|
|
|
|
2015-02-05 01:00:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|