blob: 5852a49c88c661112bfeea97e97f23b3eb0884db [file] [log] [blame]
// Copyright 2016 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.
/**
* The container of the VolumeInfo for each mounted volume.
* @interface
*/
function VolumeInfoList() {}
/** @type {number} */
VolumeInfoList.prototype.length;
/**
* Adds the event listener to listen the change of volume info.
* @param {string} type The name of the event.
* @param {function(Event)} handler The handler for the event.
*/
VolumeInfoList.prototype.addEventListener = function(type, handler) {};
/**
* Removes the event listener.
* @param {string} type The name of the event.
* @param {function(Event)} handler The handler to be removed.
*/
VolumeInfoList.prototype.removeEventListener = function(type, handler) {};
/**
* Adds the volumeInfo to the appropriate position. If there already exists,
* just replaces it.
* @param {VolumeInfo} volumeInfo The information of the new volume.
*/
VolumeInfoList.prototype.add = function(volumeInfo) {};
/**
* Removes the VolumeInfo having the given ID.
* @param {string} volumeId ID of the volume.
*/
VolumeInfoList.prototype.remove = function(volumeId) {};
/**
* @param {number} index The index of the volume in the list.
* @return {!VolumeInfo} The VolumeInfo instance.
*/
VolumeInfoList.prototype.item = function(index) {};