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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h

Issue 2742213002: bindings: Make v8_union iterate through its members by type name (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h b/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h
index c52d25764fe261b8d64618bba53429cc6c525c1a..65c9d05a63cd765b3fe027ce5d7a37a3f6d89d08 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.h
@@ -27,16 +27,16 @@ class CORE_EXPORT TestEnumOrDouble final {
TestEnumOrDouble();
bool isNull() const { return m_type == SpecificTypeNone; }
- bool isTestEnum() const { return m_type == SpecificTypeTestEnum; }
- String getAsTestEnum() const;
- void setTestEnum(String);
- static TestEnumOrDouble fromTestEnum(String);
-
bool isDouble() const { return m_type == SpecificTypeDouble; }
double getAsDouble() const;
void setDouble(double);
static TestEnumOrDouble fromDouble(double);
+ bool isTestEnum() const { return m_type == SpecificTypeTestEnum; }
+ String getAsTestEnum() const;
+ void setTestEnum(String);
+ static TestEnumOrDouble fromTestEnum(String);
+
TestEnumOrDouble(const TestEnumOrDouble&);
~TestEnumOrDouble();
TestEnumOrDouble& operator=(const TestEnumOrDouble&);
@@ -45,13 +45,13 @@ class CORE_EXPORT TestEnumOrDouble final {
private:
enum SpecificTypes {
SpecificTypeNone,
- SpecificTypeTestEnum,
SpecificTypeDouble,
+ SpecificTypeTestEnum,
};
SpecificTypes m_type;
- String m_testEnum;
double m_double;
+ String m_testEnum;
friend CORE_EXPORT v8::Local<v8::Value> ToV8(const TestEnumOrDouble&, v8::Local<v8::Object>, v8::Isolate*);
};

Powered by Google App Engine
This is Rietveld 408576698