W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

WebDatabase open interface methods

From: Nikunj R. Mehta <nikunj.mehta@oracle.com>
Date: Mon, 31 Aug 2009 11:11:20 -0700
Message-Id: <AC1ACA02-9C21-4F07-B83D-F1854A0F0EEA@oracle.com>
To: Web Applications Working Group WG <public-webapps@w3.org>
There seems to be no difference between the openDatabase methods  
defined in WindowDatabase and WorkerUtilsDatabase.

Is it possible to restructure these interfaces differently so that  
there is less redundancy?

My proposal is the following IDL:
[Supplemental, NoInterfaceObject]
interface DatabaseAsyncOpen {
   Database openDatabase(in DOMString name, in DOMString version, in  
DOMString displayName, in unsigned long estimatedSize, in optional  
DatabaseCallback creationCallback);
};
Window implements DatabaseAsyncOpen;

[Supplemental, NoInterfaceObject]
interface DatabaseSyncOpen {
   DatabaseSync openDatabaseSync(in DOMString name, in DOMString  
version, in DOMString displayName, in unsigned long estimatedSize, in  
optional DatabaseCallback creationCallback);
};
WorkerUtils implements DatabaseSyncOpen;
WorkerUtils implements DatabaseAsyncOpen;

Nikunj
http://o-micron.blogspot.com
Received on Monday, 31 August 2009 18:13:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT