dom/webidl/MozNetworkStats.webidl
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Mon, 09 Jun 2014 01:55:59 -0700
changeset 206796 f2a727ece81064a6e22177528aab80e816c3a377
parent 200878 28d11c3268d3158cde515cb8230e8de0898346f1
child 214732 2c8433065a33930f7f52c66adc9867fdab84c1e8
permissions -rw-r--r--
Bumping gaia.json for 2 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/f2cf7db6a537 Author: Rudy Lu <me@rudy.lu> Desc: Merge pull request #19856 from RudyLu/keyboard/Bug1013570_commit Bug 1013570 - [B2G][Keyboard]Double or triple tapping on the spacebar. r=timdream. ======== https://hg.mozilla.org/integration/gaia-central/rev/499f0f82afc8 Author: Rudy Lu <me@rudy.lu> Desc: Bug 1013570 - [B2G][Keyboard]Double or triple tapping on the spacebar can result in 2-3 periods, as well as deleted characters. - Send the next key after the previous sendKey is resolved.

/* 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/. */

/**
 * Provide the detailed options for specifying different kinds of data filtering
 * in getSamples function.
 */
dictionary NetworkStatsGetOptions
{
  /**
   * App manifest URL is used to filter network stats by app, while service type
   * is used to filter stats by system service.
   * Note that, these two options cannot be specified at the same time for now;
   * others, an NS_ERROR_NOT_IMPLMENTED exception will be thrown.
   */
  DOMString appManifestURL;
  DOMString serviceType;
};

dictionary NetworkStatsAlarmOptions
{
  Date startTime;
  Date data;
};

[JSImplementation="@mozilla.org/networkstats;1",
 ChromeOnly,
 Pref="dom.mozNetworkStats.enabled",
 Func="Navigator::HasNetworkStatsSupport"]
interface MozNetworkStats {
  /**
   * App manifest URL of an application for specifying the per-app stats of the
   * specified app.
   */
  readonly attribute DOMString    appManifestURL;

  /**
   * Service type is used to retrieve the corresponding "system-only" stats.
   * E.g., "Tethering", "OTA", etc.
   */
  readonly attribute DOMString    serviceType;

  /**
   * Network the returned data belongs to.
   */
  readonly attribute MozNetworkStatsInterface network;

  /**
   * Stats for a network.
   */
  [Cached, Pure]
  readonly attribute sequence<MozNetworkStatsData> data;

  /**
   * Dates
   */
  readonly attribute object start;
  readonly attribute object end;
};