Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: Source/core/dom/ResourceProgressEvent.idl

Issue 14773025: Create ResourceProgressEvent, expose as Chromium API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: (merge) Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};
« Source/WebKit/chromium/src/WebDOMEvent.cpp ('K') | « Source/core/dom/ResourceProgressEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698