Index: core/dom/URLUtilsReadOnly.idl |
diff --git a/core/html/canvas/CanvasRenderingContext.idl b/core/dom/URLUtilsReadOnly.idl |
similarity index 72% |
copy from core/html/canvas/CanvasRenderingContext.idl |
copy to core/dom/URLUtilsReadOnly.idl |
index 36a791169baf2fb692b0aff64984a825397606fb..0d36b46d0af02d8746fe15e4cf40c085ee19b622 100644 |
--- a/core/html/canvas/CanvasRenderingContext.idl |
+++ b/core/dom/URLUtilsReadOnly.idl |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2009 Apple 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 |
@@ -25,8 +25,17 @@ |
[ |
NoInterfaceObject, |
- CustomToV8 |
-] interface CanvasRenderingContext { |
- readonly attribute HTMLCanvasElement canvas; |
-}; |
+ ImplementedAs=DOMURLUtilsReadOnly |
+] interface URLUtilsReadOnly { |
+ readonly attribute DOMString href; |
+ |
+ [NotEnumerable, ImplementedAs=href] DOMString toString(); |
+ readonly attribute DOMString protocol; |
+ readonly attribute DOMString host; |
+ readonly attribute DOMString hostname; |
+ readonly attribute DOMString port; |
+ readonly attribute DOMString pathname; |
+ readonly attribute DOMString search; |
+ readonly attribute DOMString hash; |
+}; |