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

Unified Diff: ppapi/cpp/var.h

Issue 8502030: Draft of a PPAPI interface for ArrayBuffer and typed arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, remove Resize Created 9 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
Index: ppapi/cpp/var.h
diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h
index 01b4072b2871c124bcb7179515e1cd43aa24783b..34730e364d255c869dbee7905c111909c0d2fb2b 100644
--- a/ppapi/cpp/var.h
+++ b/ppapi/cpp/var.h
@@ -160,6 +160,9 @@ class Var {
var_.type == PP_VARTYPE_DOUBLE;
}
+ /// This function determines if this <code>Var</code> is an ArrayBuffer.
+ bool is_array_buffer() const { return var_.type == PP_VARTYPE_ARRAY_BUFFER; }
+
/// AsBool() converts this <code>Var</code> to a bool. Assumes the
/// internal representation is_bool(). If it's not, it will assert in debug
/// mode, and return false.

Powered by Google App Engine
This is Rietveld 408576698