Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / serviceworkers / ServiceWorker.idl
index 8511ad0..f767915 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 [
-    RuntimeEnabled=ServiceWorker,
-    NoInterfaceObject
-] interface ServiceWorker {
+    RuntimeEnabled=ServiceWorker
+] interface ServiceWorker : EventTarget {
 
     // FIXME: Should inherit this from Worker.
     [Custom, RaisesException] void postMessage(SerializedScriptValue message, optional MessagePort[] messagePorts);
+
+    readonly attribute DOMString state;
+    attribute EventHandler onstatechange;
 };
+
+ServiceWorker implements AbstractWorker;