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

Unified Diff: extensions/renderer/argument_spec.h

Issue 2835573002: [Extensions Bindings] Add support for maximum integers (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/argument_spec.h
diff --git a/extensions/renderer/argument_spec.h b/extensions/renderer/argument_spec.h
index f264e25e53c741dad0e3cefacbd4529e6883115c..66b87a1d5ec9fa91e80567231c1c886ba44619ea 100644
--- a/extensions/renderer/argument_spec.h
+++ b/extensions/renderer/argument_spec.h
@@ -131,8 +131,9 @@ class ArgumentSpec {
// type in its prototype chain.
base::Optional<std::string> instance_of_;
- // A minimum, if any.
+ // A minimum and maximum for integer and double values, if any.
base::Optional<int> minimum_;
+ base::Optional<int> maximum_;
// A minimium length for strings or arrays.
base::Optional<size_t> min_length_;
« no previous file with comments | « no previous file | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698