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

Unified Diff: content/public/child/v8_value_converter.h

Issue 2709103004: [Content] Allow V8ValueConverter to convert -0 to an integer (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « content/child/v8_value_converter_impl_unittest.cc ('k') | extensions/renderer/resources/schema_utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/v8_value_converter.h
diff --git a/content/public/child/v8_value_converter.h b/content/public/child/v8_value_converter.h
index 9afeb397bc56b2d5acbe337f5d16538d31bb0827..f53c7c651d465581874e25ae2c0cce0975dd1c25 100644
--- a/content/public/child/v8_value_converter.h
+++ b/content/public/child/v8_value_converter.h
@@ -100,6 +100,9 @@ class CONTENT_EXPORT V8ValueConverter {
// converting arguments to extension APIs.
virtual void SetStripNullFromObjects(bool val) = 0;
+ // If true, treats -0 as an integer. Otherwise, -0 is converted to a double.
+ virtual void SetConvertNegativeZeroToInt(bool val) = 0;
+
// Extend default behavior of V8ValueConverter.
virtual void SetStrategy(Strategy* strategy) = 0;
« no previous file with comments | « content/child/v8_value_converter_impl_unittest.cc ('k') | extensions/renderer/resources/schema_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698