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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/UnrestrictedDoubleOrString.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/UnrestrictedDoubleOrString.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/UnrestrictedDoubleOrString.h b/third_party/WebKit/Source/bindings/tests/results/core/UnrestrictedDoubleOrString.h
index fc252e450da73f302a8d1d5311503c17a062ad92..99315ea584188c889f6942da41b7c01be4d4dbb8 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/UnrestrictedDoubleOrString.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/UnrestrictedDoubleOrString.h
@@ -27,16 +27,16 @@ class CORE_EXPORT UnrestrictedDoubleOrString final {
UnrestrictedDoubleOrString();
bool isNull() const { return m_type == SpecificTypeNone; }
- bool isUnrestrictedDouble() const { return m_type == SpecificTypeUnrestrictedDouble; }
- double getAsUnrestrictedDouble() const;
- void setUnrestrictedDouble(double);
- static UnrestrictedDoubleOrString fromUnrestrictedDouble(double);
-
bool isString() const { return m_type == SpecificTypeString; }
String getAsString() const;
void setString(String);
static UnrestrictedDoubleOrString fromString(String);
+ bool isUnrestrictedDouble() const { return m_type == SpecificTypeUnrestrictedDouble; }
+ double getAsUnrestrictedDouble() const;
+ void setUnrestrictedDouble(double);
+ static UnrestrictedDoubleOrString fromUnrestrictedDouble(double);
+
UnrestrictedDoubleOrString(const UnrestrictedDoubleOrString&);
~UnrestrictedDoubleOrString();
UnrestrictedDoubleOrString& operator=(const UnrestrictedDoubleOrString&);
@@ -45,13 +45,13 @@ class CORE_EXPORT UnrestrictedDoubleOrString final {
private:
enum SpecificTypes {
SpecificTypeNone,
- SpecificTypeUnrestrictedDouble,
SpecificTypeString,
+ SpecificTypeUnrestrictedDouble,
};
SpecificTypes m_type;
- double m_unrestrictedDouble;
String m_string;
+ double m_unrestrictedDouble;
friend CORE_EXPORT v8::Local<v8::Value> ToV8(const UnrestrictedDoubleOrString&, v8::Local<v8::Object>, v8::Isolate*);
};

Powered by Google App Engine
This is Rietveld 408576698