mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
|
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
||
|
* 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/. */
|
||
|
|
||
|
package org.mozilla.gecko;
|
||
|
|
||
|
/**
|
||
|
* Holds data definitions for our UI Telemetry implementation.
|
||
|
*/
|
||
|
public interface TelemetryContract {
|
||
|
|
||
|
/**
|
||
|
* Holds event names. Intended for use with
|
||
|
* Telemetry.sendUIEvent() as the "action" parameter.
|
||
|
*/
|
||
|
public interface Event {}
|
||
|
|
||
|
/**
|
||
|
* Holds event methods. Intended for use in
|
||
|
* Telemetry.sendUIEvent() as the "method" parameter.
|
||
|
*/
|
||
|
public interface Method {}
|
||
|
|
||
|
/**
|
||
|
* Holds session names. Intended for use with
|
||
|
* Telemetry.startUISession() as the "sessionName" parameter.
|
||
|
*/
|
||
|
public interface Session {
|
||
|
// Started when a user enters about:home.
|
||
|
public static final String HOME = "home.1";
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Holds reasons for stopping a session. Intended for use in
|
||
|
* Telemetry.stopUISession() as the "reason" parameter.
|
||
|
*/
|
||
|
public interface Reason {}
|
||
|
}
|