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

Unified Diff: core/dom/URLUtils.idl

Issue 126143003: Update IDL to Chrome 32 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Add new files Created 6 years, 11 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
« no previous file with comments | « core/dom/URL.idl ('k') | core/dom/URLUtilsReadOnly.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/dom/URLUtils.idl
diff --git a/core/dom/ResourceProgressEvent.idl b/core/dom/URLUtils.idl
similarity index 66%
copy from core/dom/ResourceProgressEvent.idl
copy to core/dom/URLUtils.idl
index 660b8b16105c9c679c70ecd0752df034cacb7716..b4c3e671fb2e62c51997aff6f4fd8c34947b5fe6 100644
--- a/core/dom/ResourceProgressEvent.idl
+++ b/core/dom/URLUtils.idl
@@ -23,16 +23,29 @@
* 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 ResourceProgressEvent : ProgressEvent {
- readonly attribute DOMString url;
+ ImplementedAs=DOMURLUtils
+] interface URLUtils {
+ // Special case null for backwards compat with HTMLAnchorElement href.
+ // https://code.google.com/p/chromium/issues/detail?id=304959
+ [TreatNullAs=NullString] attribute DOMString href;
+
+ [NotEnumerable, ImplementedAs=href] DOMString toString();
+
+ readonly attribute DOMString origin;
+ attribute DOMString protocol;
+ attribute DOMString username;
+ attribute DOMString password;
+ attribute DOMString host;
+ attribute DOMString hostname;
+ attribute DOMString port;
+ attribute DOMString pathname;
+ attribute DOMString search;
+
+ // Not yet implemented.
+ // attribute URLQuery? query;
+
+ attribute DOMString hash;
};
« no previous file with comments | « core/dom/URL.idl ('k') | core/dom/URLUtilsReadOnly.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698