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

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

Issue 305723002: Use method registration approach for creating events on core and modules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline Created 6 years, 6 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 | « Source/core/dom/Document.cpp ('k') | Source/core/events/EventFactory.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4.
57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4. 57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4.
58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. 58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4.
59 59
60 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node); 60 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node);
61 61
62 [TreatReturnedNullStringAs=Null, ImplementedAs=url] readonly attribute DOMSt ring documentURI; 62 [TreatReturnedNullStringAs=Null, ImplementedAs=url] readonly attribute DOMSt ring documentURI;
63 63
64 // DOM Level 2 Events (DocumentEvents interface) 64 // DOM Level 2 Events (DocumentEvents interface)
65 65
66 // Customize createEvent so it can call createEventModules in modules. 66 [RaisesException] Event createEvent(DOMString eventType);
67 // FIXME: Use method registration approach instead. http://crbug.com/358074
68 [Custom, RaisesException] Event createEvent(DOMString eventType);
69 67
70 // DOM Level 2 Traversal and Range (DocumentRange interface) 68 // DOM Level 2 Traversal and Range (DocumentRange interface)
71 69
72 Range createRange(); 70 Range createRange();
73 71
74 // DOM Level 2 Traversal and Range (DocumentTraversal interface) 72 // DOM Level 2 Traversal and Range (DocumentTraversal interface)
75 73
76 [RaisesException] NodeIterator createNodeIterator(Node root, 74 [RaisesException] NodeIterator createNodeIterator(Node root,
77 optional unsigned long wha tToShow, 75 optional unsigned long wha tToShow,
78 optional NodeFilter filter ); 76 optional NodeFilter filter );
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 218 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
221 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
222 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 220 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
223 221
224 readonly attribute HTMLScriptElement currentScript; 222 readonly attribute HTMLScriptElement currentScript;
225 }; 223 };
226 224
227 Document implements GlobalEventHandlers; 225 Document implements GlobalEventHandlers;
228 Document implements ParentNode; 226 Document implements ParentNode;
229 227
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/events/EventFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698