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

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

Issue 1193793003: bindings: Makes almost all attributes accessor-type properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 5 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 | Annotate | Revision Log
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,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp ec. 74 // FIXME: xmlEncoding/xmlVersion/xmlStandalone have been removed from the sp ec.
75 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; 75 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding;
76 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString? xmlVersion; 76 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString? xmlVersion;
77 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; 77 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone;
78 78
79 // HTML 79 // HTML
80 // https://html.spec.whatwg.org/#the-document-object 80 // https://html.spec.whatwg.org/#the-document-object
81 81
82 // resource metadata management 82 // resource metadata management
83
84 // Inheritance of [Unforgeable] attributes is not supported. So we have to
85 // define the same unforgeable attributes in derived interfaces as well.
86 // See that HTMLDocument and XMLDocument redefine 'location' attribute.
87 // Keep all the definitions consistent.
88 // TODO(yukishiino): Support inheritance of attributes defined on instance.
83 [PutForwards=href, Unforgeable] readonly attribute Location? location; 89 [PutForwards=href, Unforgeable] readonly attribute Location? location;
84 [RaisesException=Setter] attribute DOMString domain; 90 [RaisesException=Setter] attribute DOMString domain;
85 readonly attribute DOMString referrer; 91 readonly attribute DOMString referrer;
86 // FIXME: cookie should not have [TreatNullAs=NullString]. 92 // FIXME: cookie should not have [TreatNullAs=NullString].
87 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie; 93 [TreatNullAs=NullString, RaisesException] attribute DOMString cookie;
88 readonly attribute DOMString lastModified; 94 readonly attribute DOMString lastModified;
89 readonly attribute DocumentReadyState readyState; 95 readonly attribute DocumentReadyState readyState;
90 96
91 // DOM tree accessors 97 // DOM tree accessors
92 // FIXME: title and dir should not have [TreatNullAs=NullString]. 98 // FIXME: title and dir should not have [TreatNullAs=NullString].
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 attribute EventHandler onsearch; 223 attribute EventHandler onsearch;
218 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 224 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
219 attribute EventHandler onselectionchange; 225 attribute EventHandler onselectionchange;
220 attribute EventHandler onselectstart; 226 attribute EventHandler onselectstart;
221 attribute EventHandler onwheel; 227 attribute EventHandler onwheel;
222 }; 228 };
223 229
224 Document implements GlobalEventHandlers; 230 Document implements GlobalEventHandlers;
225 Document implements ParentNode; 231 Document implements ParentNode;
226 Document implements NonElementParentNode; 232 Document implements NonElementParentNode;
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | Source/core/dom/XMLDocument.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698