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

Unified Diff: gin/arguments.h

Issue 185263006: Move TestRunner from CppVariable to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: gin/arguments.h
diff --git a/gin/arguments.h b/gin/arguments.h
index ec4ae80e88219d5fcb15ecb770bfdf429c672849..509c22ca14f892f3188348e6b1b9fae01b5caafa 100644
--- a/gin/arguments.h
+++ b/gin/arguments.h
@@ -56,6 +56,17 @@ class GIN_EXPORT Arguments {
return true;
}
+ bool Skip() {
+ if (next_ >= info_->Length())
+ return false;
+ next_++;
+ return true;
+ }
+
+ int Length() const {
+ return info_->Length();
+ }
+
template<typename T>
void Return(T val) {
info_->GetReturnValue().Set(ConvertToV8(isolate_, val));

Powered by Google App Engine
This is Rietveld 408576698