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

Side by Side Diff: third_party/WebKit/Source/core/frame/Location.idl

Issue 2705043002: Added use counters for document.origin and document.location.origin (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 [CallWith=CurrentWindow] void reload(); 53 [CallWith=CurrentWindow] void reload();
54 54
55 // TODO(foolip): |ancestorOrigins| should have [Unforgeable, SameObject]. 55 // TODO(foolip): |ancestorOrigins| should have [Unforgeable, SameObject].
56 readonly attribute DOMStringList ancestorOrigins; 56 readonly attribute DOMStringList ancestorOrigins;
57 57
58 // TODO(foolip): Per spec, Location implements URLUtils. The below is 58 // TODO(foolip): Per spec, Location implements URLUtils. The below is
59 // mostly like the URLUtils interface, but with some members missing and 59 // mostly like the URLUtils interface, but with some members missing and
60 // using DOMString instead of USVString. 60 // using DOMString instead of USVString.
61 [SetterCallWith=(CurrentWindow,EnteredWindow), CrossOrigin=Setter, RaisesExc eption=Setter] attribute DOMString href; 61 [SetterCallWith=(CurrentWindow,EnteredWindow), CrossOrigin=Setter, RaisesExc eption=Setter] attribute DOMString href;
62 [NotEnumerable, ImplementedAs=href] DOMString toString(); 62 [NotEnumerable, ImplementedAs=href] DOMString toString();
63 readonly attribute DOMString origin; 63 [MeasureAs=LocationOrigin] readonly attribute DOMString origin;
64 64
65 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString protocol; 65 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString protocol;
66 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString host; 66 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString host;
67 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hostname; 67 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hostname;
68 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString port; 68 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString port;
69 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString pathname; 69 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString pathname;
70 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString search; 70 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString search;
71 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hash; 71 [SetterCallWith=(CurrentWindow,EnteredWindow), RaisesException=Setter] attri bute DOMString hash;
72 72
73 // TODO(foolip): Location does not have a valueOf() override in the spec. 73 // TODO(foolip): Location does not have a valueOf() override in the spec.
74 // See the comment in Location.h for the purpose of this. 74 // See the comment in Location.h for the purpose of this.
75 [NotEnumerable, CallWith=ThisValue] any valueOf(); 75 [NotEnumerable, CallWith=ThisValue] any valueOf();
76 }; 76 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698