| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| |
| |
| goog.provide('device.mojom.BatteryMonitor'); |
| goog.provide('device.mojom.BatteryMonitorImpl'); |
| goog.provide('device.mojom.BatteryMonitorPtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| device.mojom.BatteryMonitor; |
| |
| /** @interface */ |
| device.mojom.BatteryMonitorImpl = class { |
| /** |
| * @return {Promise} |
| */ |
| queryNextStatus() {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { device.mojom.BatteryMonitorImpl } |
| */ |
| device.mojom.BatteryMonitorPtr = class { |
| /** |
| * @return {Promise} |
| */ |
| queryNextStatus() {} |
| }; |
| |
| goog.provide('device.mojom.BatteryMonitor_QueryNextStatus_Params'); |
| |
| device.mojom.BatteryMonitor_QueryNextStatus_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('device.mojom.BatteryMonitor_QueryNextStatus_ResponseParams'); |
| |
| device.mojom.BatteryMonitor_QueryNextStatus_ResponseParams = class { |
| constructor() { |
| /** @type { !device.mojom.BatteryStatus } */ |
| this.status; |
| } |
| }; |