michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #include "domstubs.idl" michael@0: michael@0: [scriptable, uuid(c43448db-0bab-461d-b648-1ca14a967f7e)] michael@0: interface nsIDOMTimeRanges : nsISupports michael@0: { michael@0: /* The number of ranges represented by the time range object */ michael@0: readonly attribute unsigned long length; michael@0: michael@0: /* The position of the start of the index'd range, in seconds measured michael@0: from the start of the timeline that this object represents */ michael@0: double start(in unsigned long index); michael@0: michael@0: /* The position of the end of the index'd range, in seconds measured michael@0: from the start of the timeline that this object represents */ michael@0: double end(in unsigned long index); michael@0: };