2010-06-23 23:46:08 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2010-06-23 23:46:08 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIIDBKeyRange;
|
2011-10-20 20:10:56 +04:00
|
|
|
interface nsIIDBOpenDBRequest;
|
2010-06-23 23:46:08 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface that defines the indexedDB property on a window. See
|
2010-06-28 20:44:30 +04:00
|
|
|
* http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBFactory
|
2010-06-23 23:46:08 +04:00
|
|
|
* for more information.
|
|
|
|
*/
|
2012-06-29 20:48:34 +04:00
|
|
|
[scriptable, builtinclass, uuid(3c763a8f-df53-491d-9635-e1d959e43c0c)]
|
2010-06-28 20:44:30 +04:00
|
|
|
interface nsIIDBFactory : nsISupports
|
2010-06-23 23:46:08 +04:00
|
|
|
{
|
2012-06-29 20:48:34 +04:00
|
|
|
[implicit_jscontext, optional_argc]
|
2011-10-20 20:10:56 +04:00
|
|
|
nsIIDBOpenDBRequest
|
2011-11-08 03:37:16 +04:00
|
|
|
open([Null(Stringify)] in DOMString name,
|
2011-11-02 16:53:12 +04:00
|
|
|
[optional] in long long version);
|
2011-11-08 04:15:45 +04:00
|
|
|
|
2012-06-29 20:48:34 +04:00
|
|
|
[implicit_jscontext]
|
2011-11-08 04:15:45 +04:00
|
|
|
nsIIDBOpenDBRequest
|
|
|
|
deleteDatabase(in AString name);
|
2011-11-08 23:03:18 +04:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
short
|
|
|
|
cmp(in jsval first,
|
|
|
|
in jsval second);
|
2010-06-23 23:46:08 +04:00
|
|
|
};
|