chromium/services/device/public/mojom/battery_status.mojom

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module device.mojom;

struct BatteryStatus {
  bool charging = true;
  double charging_time = 0.0;
  double discharging_time = double.INFINITY;
  double level = 1.0;
};