1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef TelemetryUserInteractionInfo_h__
7 #define TelemetryUserInteractionInfo_h__
9 #include "TelemetryCommon.h"
11 // This module is internal to Telemetry. It defines a structure that holds the
12 // UserInteraction info. It should only be used by
13 // TelemetryUserInteractionData.h automatically generated file and
14 // TelemetryUserInteraction.cpp. This should not be used anywhere else. For the
15 // public interface to Telemetry functionality, see Telemetry.h.
19 struct UserInteractionInfo
{
20 const uint32_t name_offset
;
22 explicit constexpr UserInteractionInfo(const uint32_t aNameOffset
)
23 : name_offset(aNameOffset
) {}
25 const char* name() const;
30 #endif // TelemetryUserInteractionInfo_h__