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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.idl

Issue 1754713006: CORS-RFC1918: Introduce the 'addressSpace' IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar webexposed Created 4 years, 9 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) 2006, 2007, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 callback CustomElementConstructor = Element (); 21 callback CustomElementConstructor = Element ();
22 22
23 // https://html.spec.whatwg.org/#the-document-object 23 // https://html.spec.whatwg.org/#the-document-object
24 enum DocumentReadyState { "loading", "interactive", "complete" }; 24 enum DocumentReadyState { "loading", "interactive", "complete" };
25 25
26 // http://www.w3.org/TR/page-visibility/#VisibilityState 26 // http://www.w3.org/TR/page-visibility/#VisibilityState
27 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; 27 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };
28 28
29 // https://mikewest.github.io/cors-rfc1918/#feature-detect
30 enum AddressSpace { "local", "private", "public" };
31
29 // https://dom.spec.whatwg.org/#interface-document 32 // https://dom.spec.whatwg.org/#interface-document
30 33
31 // FIXME: Document should have a constructor. crbug.com/238234 34 // FIXME: Document should have a constructor. crbug.com/238234
32 interface Document : Node { 35 interface Document : Node {
33 [SameObject] readonly attribute DOMImplementation implementation; 36 [SameObject] readonly attribute DOMImplementation implementation;
34 readonly attribute DOMString URL; 37 readonly attribute DOMString URL;
35 // FIXME: documentURI should not be nullable. 38 // FIXME: documentURI should not be nullable.
36 [ImplementedAs=url] readonly attribute DOMString? documentURI; 39 [ImplementedAs=url] readonly attribute DOMString? documentURI;
37 readonly attribute DOMString origin; 40 readonly attribute DOMString origin;
38 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin; 41 [RuntimeEnabled=suborigins] readonly attribute DOMString suborigin;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 199
197 // Non-standard APIs 200 // Non-standard APIs
198 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y); 201 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y);
199 202
200 // Deprecated prefixed page visibility API. 203 // Deprecated prefixed page visibility API.
201 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 204 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
202 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 205 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
203 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 206 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
204 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 207 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
205 208
209 // https://mikewest.github.io/cors-rfc1918/#feature-detect
philipj_slow 2016/03/04 04:35:08 Can you move this up to after Page Visibility and
Mike West 2016/03/04 08:58:21 Done and done.
210 [RuntimeEnabled=CorsRFC1918, ImplementedAs=addressSpaceAsString] readonly at tribute AddressSpace addressSpace;
211
206 // Event handler attributes 212 // Event handler attributes
207 attribute EventHandler onbeforecopy; 213 attribute EventHandler onbeforecopy;
208 attribute EventHandler onbeforecut; 214 attribute EventHandler onbeforecut;
209 attribute EventHandler onbeforepaste; 215 attribute EventHandler onbeforepaste;
210 attribute EventHandler oncopy; 216 attribute EventHandler oncopy;
211 attribute EventHandler oncut; 217 attribute EventHandler oncut;
212 attribute EventHandler onpaste; 218 attribute EventHandler onpaste;
213 attribute EventHandler onsearch; 219 attribute EventHandler onsearch;
214 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 220 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
215 attribute EventHandler onselectionchange; 221 attribute EventHandler onselectionchange;
216 attribute EventHandler onselectstart; 222 attribute EventHandler onselectstart;
217 attribute EventHandler onwheel; 223 attribute EventHandler onwheel;
218 }; 224 };
219 225
220 Document implements GlobalEventHandlers; 226 Document implements GlobalEventHandlers;
221 Document implements ParentNode; 227 Document implements ParentNode;
222 Document implements NonElementParentNode; 228 Document implements NonElementParentNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698