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

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

Issue 1883433003: Add UseCounter for legacy document.* that returns HTMLCollection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use [Measure] Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 readonly attribute DOMString referrer; 96 readonly attribute DOMString referrer;
97 [RaisesException] attribute DOMString cookie; 97 [RaisesException] attribute DOMString cookie;
98 readonly attribute DOMString lastModified; 98 readonly attribute DOMString lastModified;
99 readonly attribute DocumentReadyState readyState; 99 readonly attribute DocumentReadyState readyState;
100 100
101 // DOM tree accessors 101 // DOM tree accessors
102 [CustomElementCallbacks] attribute DOMString title; 102 [CustomElementCallbacks] attribute DOMString title;
103 [CustomElementCallbacks] attribute DOMString dir; 103 [CustomElementCallbacks] attribute DOMString dir;
104 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute HTMLElement? body; 104 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute HTMLElement? body;
105 readonly attribute HTMLHeadElement? head; 105 readonly attribute HTMLHeadElement? head;
106 [SameObject] readonly attribute HTMLCollection images; 106 [SameObject, Measure] readonly attribute HTMLCollection images;
107 [SameObject] readonly attribute HTMLCollection embeds; 107 [SameObject, Measure] readonly attribute HTMLCollection embeds;
108 [SameObject, ImplementedAs=embeds] readonly attribute HTMLCollection plugins ; 108 [SameObject, ImplementedAs=embeds, Measure] readonly attribute HTMLCollectio n plugins;
109 [SameObject] readonly attribute HTMLCollection links; 109 [SameObject, Measure] readonly attribute HTMLCollection links;
110 [SameObject] readonly attribute HTMLCollection forms; 110 [SameObject, Measure] readonly attribute HTMLCollection forms;
111 [SameObject] readonly attribute HTMLCollection scripts; 111 [SameObject, Measure] readonly attribute HTMLCollection scripts;
112 [PerWorldBindings] NodeList getElementsByName(DOMString elementName); 112 [PerWorldBindings] NodeList getElementsByName(DOMString elementName);
113 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLScriptElement ? currentScript; 113 [ImplementedAs=currentScriptForBinding] readonly attribute HTMLScriptElement ? currentScript;
114 114
115 // dynamic markup insertion 115 // dynamic markup insertion
116 // FIXME: There are two open() methods in the spec. 116 // FIXME: There are two open() methods in the spec.
117 [Custom, CustomElementCallbacks, RaisesException] void open(); 117 [Custom, CustomElementCallbacks, RaisesException] void open();
118 [RaisesException] void close(); 118 [RaisesException] void close();
119 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write (DOMString... text); 119 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write (DOMString... text);
120 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write ln(DOMString... text); 120 [CallWith=EnteredWindow, CustomElementCallbacks, RaisesException] void write ln(DOMString... text);
121 121
122 // user interaction 122 // user interaction
123 [ImplementedAs=domWindow] readonly attribute Window? defaultView; 123 [ImplementedAs=domWindow] readonly attribute Window? defaultView;
124 boolean hasFocus(); 124 boolean hasFocus();
125 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d esignMode; 125 [CustomElementCallbacks, MeasureAs=DocumentDesignMode] attribute DOMString d esignMode;
126 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm andId, optional boolean showUI = false, optional DOMString value = ""); 126 [CustomElementCallbacks, RaisesException] boolean execCommand(DOMString comm andId, optional boolean showUI = false, optional DOMString value = "");
127 [RaisesException] boolean queryCommandEnabled(DOMString commandId); 127 [RaisesException] boolean queryCommandEnabled(DOMString commandId);
128 [RaisesException] boolean queryCommandIndeterm(DOMString commandId); 128 [RaisesException] boolean queryCommandIndeterm(DOMString commandId);
129 [RaisesException] boolean queryCommandState(DOMString commandId); 129 [RaisesException] boolean queryCommandState(DOMString commandId);
130 [RaisesException] boolean queryCommandSupported(DOMString commandId); 130 [RaisesException] boolean queryCommandSupported(DOMString commandId);
131 [RaisesException] DOMString queryCommandValue(DOMString commandId); 131 [RaisesException] DOMString queryCommandValue(DOMString commandId);
132 132
133 [LenientThis] attribute EventHandler onreadystatechange; 133 [LenientThis] attribute EventHandler onreadystatechange;
134 134
135 // HTML obsolete features 135 // HTML obsolete features
136 // https://html.spec.whatwg.org/#Document-partial 136 // https://html.spec.whatwg.org/#Document-partial
137 137
138 // FIXME: *Color are on HTMLDocument. 138 // FIXME: *Color are on HTMLDocument.
139 139
140 readonly attribute HTMLCollection anchors; 140 [Measure] readonly attribute HTMLCollection anchors;
141 readonly attribute HTMLCollection applets; 141 [Measure] readonly attribute HTMLCollection applets;
142 142
143 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum ent. 143 // FIXME: clear(), captureEvents(), releaseEvents() and all are on HTMLDocum ent.
144 144
145 // CSS Object Model (CSSOM) 145 // CSS Object Model (CSSOM)
146 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface 146 // http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface
147 attribute DOMString? selectedStylesheetSet; 147 attribute DOMString? selectedStylesheetSet;
148 readonly attribute DOMString? preferredStylesheetSet; 148 readonly attribute DOMString? preferredStylesheetSet;
149 149
150 readonly attribute Element? scrollingElement; 150 readonly attribute Element? scrollingElement;
151 151
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 214 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
215 attribute EventHandler onselectionchange; 215 attribute EventHandler onselectionchange;
216 attribute EventHandler onselectstart; 216 attribute EventHandler onselectstart;
217 attribute EventHandler onwheel; 217 attribute EventHandler onwheel;
218 }; 218 };
219 219
220 Document implements GlobalEventHandlers; 220 Document implements GlobalEventHandlers;
221 Document implements ParentNode; 221 Document implements ParentNode;
222 Document implements NonElementParentNode; 222 Document implements NonElementParentNode;
223 Document implements DocumentOrShadowRoot; 223 Document implements DocumentOrShadowRoot;
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698