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

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

Issue 1145773003: Remove the Document.charset setter (making it readonly) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix webexposed tests Created 5 years, 7 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // FIXME: The typeExtension arguments should not be nullable. 192 // FIXME: The typeExtension arguments should not be nullable.
193 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension); 193 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension);
194 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension); 194 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension);
195 195
196 // Page Visibility 196 // Page Visibility
197 // http://www.w3.org/TR/page-visibility/#sec-document-interface 197 // http://www.w3.org/TR/page-visibility/#sec-document-interface
198 readonly attribute boolean hidden; 198 readonly attribute boolean hidden;
199 readonly attribute VisibilityState visibilityState; 199 readonly attribute VisibilityState visibilityState;
200 200
201 // Non-standard APIs 201 // Non-standard APIs
202 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs =NullString] attribute DOMString charset; 202 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly at tribute DOMString charset;
203 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset; 203 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset;
204 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y); 204 [MeasureAs=DocumentCaretRangeFromPoint] Range caretRangeFromPoint([Default=U ndefined] optional long x, [Default=Undefined] optional long y);
205 [DeprecateAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasConte xt(DOMString contextId, DOMString name, long width, long height); 205 [DeprecateAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasConte xt(DOMString contextId, DOMString name, long width, long height);
206 206
207 // Deprecated prefixed page visibility API. 207 // Deprecated prefixed page visibility API.
208 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 208 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
209 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 209 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
210 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 210 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
212 212
213 // Event handler attributes 213 // Event handler attributes
214 attribute EventHandler onbeforecopy; 214 attribute EventHandler onbeforecopy;
215 attribute EventHandler onbeforecut; 215 attribute EventHandler onbeforecut;
216 attribute EventHandler onbeforepaste; 216 attribute EventHandler onbeforepaste;
217 attribute EventHandler oncopy; 217 attribute EventHandler oncopy;
218 attribute EventHandler oncut; 218 attribute EventHandler oncut;
219 attribute EventHandler onpaste; 219 attribute EventHandler onpaste;
220 attribute EventHandler onsearch; 220 attribute EventHandler onsearch;
221 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 221 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
222 attribute EventHandler onselectionchange; 222 attribute EventHandler onselectionchange;
223 attribute EventHandler onselectstart; 223 attribute EventHandler onselectstart;
224 attribute EventHandler onwheel; 224 attribute EventHandler onwheel;
225 }; 225 };
226 226
227 Document implements GlobalEventHandlers; 227 Document implements GlobalEventHandlers;
228 Document implements ParentNode; 228 Document implements ParentNode;
229 Document implements NonElementParentNode; 229 Document implements NonElementParentNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698