diff options
author | hajimehoshi@chromium.org <hajimehoshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 11:50:33 +0000 |
---|---|---|
committer | hajimehoshi@chromium.org <hajimehoshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 11:50:33 +0000 |
commit | 97f9a79537137f82e53a0d1448cbb0aa33d0194f (patch) | |
tree | 3a5e45eb3ff55a20cb04b46c4c2b922b2a0d0c81 /gin | |
parent | da95cfe657d11cf705525e6275d3eca5921ef5fe (diff) | |
download | chromium_src-97f9a79537137f82e53a0d1448cbb0aa33d0194f.zip chromium_src-97f9a79537137f82e53a0d1448cbb0aa33d0194f.tar.gz chromium_src-97f9a79537137f82e53a0d1448cbb0aa33d0194f.tar.bz2 |
Move TestRunner from CppVariable to gin::Wrappable
BUG=297480, 331301
TEST=all layout tests
Review URL: https://codereview.chromium.org/185263006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin')
-rw-r--r-- | gin/arguments.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gin/arguments.h b/gin/arguments.h index ec4ae80..509c22c 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)); |