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

Unified Diff: Source/core/testing/UnionTypesTest.h

Issue 704503002: IDL: Union type support for attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@union-arraybuffer
Patch Set: Created 6 years, 1 month 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/core/testing/UnionTypesTest.h
diff --git a/Source/core/testing/UnionTypesTest.h b/Source/core/testing/UnionTypesTest.h
index da35ea5b7771bb3dded804f24430130670cd61ed..fb2b19ae07a16e711ecc57717d30f808789c37b5 100644
--- a/Source/core/testing/UnionTypesTest.h
+++ b/Source/core/testing/UnionTypesTest.h
@@ -19,12 +19,27 @@ public:
}
virtual ~UnionTypesTest() { }
+ void doubleOrStringAttribute(DoubleOrString&);
+ void setDoubleOrStringAttribute(const DoubleOrString&);
+
String doubleOrStringArg(DoubleOrString&);
void trace(Visitor*) { }
private:
- UnionTypesTest() { }
+ UnionTypesTest()
+ : m_attributeType(SpecificTypeNone)
+ {
+ }
+
+ enum AttributeSpecificType {
+ SpecificTypeNone,
+ SpecificTypeDouble,
+ SpecificTypeString,
+ };
+ AttributeSpecificType m_attributeType;
+ double m_attributeDouble;
+ String m_attributeString;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698