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

Unified Diff: Source/bindings/tests/idls/testing/TestSupportTestPartialInterface.idl

Issue 24053003: Support partial interface for test support idls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove hardcoding Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/idls/testing/TestSupportTestPartialInterface.idl
diff --git a/Source/core/dom/ParentNode.h b/Source/bindings/tests/idls/testing/TestSupportTestPartialInterface.idl
similarity index 59%
copy from Source/core/dom/ParentNode.h
copy to Source/bindings/tests/idls/testing/TestSupportTestPartialInterface.idl
index 9fb949a35b0aefb308f11af7253806ad7167cbe8..be69cf964b1752770dbfeb176efd8d701eecffd7 100644
--- a/Source/core/dom/ParentNode.h
+++ b/Source/bindings/tests/idls/testing/TestSupportTestPartialInterface.idl
@@ -28,36 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ParentNode_h
-#define ParentNode_h
-
-#include "core/dom/ContainerNode.h"
-
-namespace WebCore {
-
-class ParentNode {
-public:
- static PassRefPtr<HTMLCollection> children(ContainerNode* node)
- {
- return node->children();
- }
-
- static Element* firstElementChild(ContainerNode* node)
- {
- return node->firstElementChild();
- }
-
- static Element* lastElementChild(ContainerNode* node)
- {
- return node->lastElementChild();
- }
-
- static unsigned childElementCount(ContainerNode* node)
- {
- return node->childElementCount();
- }
+[
+ Conditional=Condition11|Condition12
+] partial interface TestSupportTestInterface {
+ // This IDL file is for testing the bindings code generator and for test support files
+ static readonly attribute long supplementalStaticReadOnlyAttr;
+ static attribute DOMString supplementalStaticAttr;
+ readonly attribute DOMString supplementalStr1;
+ attribute DOMString supplementalStr2;
+ [CustomGetter, CustomSetter] attribute DOMString supplementalStr3;
+ attribute Node supplementalNode;
+
+ void supplementalMethod1();
+ [CallWith=ScriptExecutionContext, RaisesException] TestObject supplementalMethod2(DOMString strArg, TestObject objArg);
+ [Custom] void supplementalMethod3();
+ static void supplementalMethod4();
+
+ const unsigned short SUPPLEMENTALCONSTANT1 = 1;
+ [Reflect=CONST_IMPL] const unsigned short SUPPLEMENTALCONSTANT2 = 2;
+
+ [EnabledAtRuntime=Condition13] attribute Node Node13;
+ [EnabledPerContext=Condition14] attribute Node Node14;
+ [EnabledAtRuntime=Condition15, EnabledPerContext=Condition16] attribute Node Node15;
};
-
-} // namespace WebCore
-
-#endif // ParentNode_h

Powered by Google App Engine
This is Rietveld 408576698