Index: Source/core/dom/ResourceProgressEvent.idl |
diff --git a/Source/core/inspector/ScriptProfileNode.idl b/Source/core/dom/ResourceProgressEvent.idl |
similarity index 68% |
copy from Source/core/inspector/ScriptProfileNode.idl |
copy to Source/core/dom/ResourceProgressEvent.idl |
index c3eec68b0adf223e7ab1d8b98cf6ce938a6e06f8..c08192a0a34a8819ab9dd8ae274d62ea244d6505 100644 |
--- a/Source/core/inspector/ScriptProfileNode.idl |
+++ b/Source/core/dom/ResourceProgressEvent.idl |
@@ -1,6 +1,5 @@ |
/* |
- * Copyright (C) 2010 Apple Inc. All rights reserved. |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * Copyright (C) 2013 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -21,20 +20,19 @@ |
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// ResourceProgressEvent is a non-standard class that is simply a ProgressEvent |
+// with an additional read-only "url" property containing a string URL. This is |
+// used by the Chromium NaCl integration to indicate to which resource the |
+// event applies. This is useful because the NaCl integration will download |
+// (and translate in the case of PNaCl) multiple binary files. It is not |
+// constructable by web content at all, and so does not provide the usual |
+// EventInit pattern for Event construction. |
[ |
NoInterfaceObject, |
-] interface ScriptProfileNode { |
- readonly attribute DOMString functionName; |
+] interface ResourceProgressEvent : ProgressEvent { |
readonly attribute DOMString url; |
- readonly attribute unsigned long lineNumber; |
- readonly attribute double totalTime; |
- readonly attribute double selfTime; |
- readonly attribute unsigned long numberOfCalls; |
- sequence<ScriptProfileNode> children(); |
- readonly attribute boolean visible; |
- readonly attribute unsigned long callUID; |
}; |