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

Unified Diff: gin/arguments.h

Issue 76923003: First cut at gin::Bind() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | gin/function_template.h » ('j') | gin/function_template.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/arguments.h
diff --git a/gin/arguments.h b/gin/arguments.h
index 1d59d344563201208b787b34258f959e20e4bdbd..8a372eadfdb3113b2da925c996cbaa35f8d53989 100644
--- a/gin/arguments.h
+++ b/gin/arguments.h
@@ -16,11 +16,17 @@ class Arguments {
~Arguments();
template<typename T>
+ // TODO(aa): Rename GetHolder().
bool Holder(T* out) {
return ConvertFromV8(info_.Holder(), out);
}
template<typename T>
+ bool GetData(T* out) {
+ return ConvertFromV8(info_.Data(), out);
+ }
+
+ template<typename T>
bool GetNext(T* out) {
if (next_ >= info_.Length()) {
insufficient_arguments_ = true;
« no previous file with comments | « no previous file | gin/function_template.h » ('j') | gin/function_template.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698