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

Unified Diff: ppapi/cpp/var.cc

Issue 12387073: Add PPB_VarDictionary_Dev support - part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 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
« no previous file with comments | « ppapi/cpp/var.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/var.cc
diff --git a/ppapi/cpp/var.cc b/ppapi/cpp/var.cc
index 09a8fe38f68998e9e393a2e554bfe32b288dc2f5..1108e05ef46488ced290cef1d8f6ee7ae366fcf2 100644
--- a/ppapi/cpp/var.cc
+++ b/ppapi/cpp/var.cc
@@ -241,10 +241,16 @@ std::string Var::DebugString() const {
str.append("...");
}
snprintf(buf, sizeof(buf), format, str.c_str());
- } else if (is_array_buffer()) {
- snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)");
} else if (is_object()) {
snprintf(buf, sizeof(buf), "Var(OBJECT)");
+ } else if (is_array()) {
+ snprintf(buf, sizeof(buf), "Var(ARRAY)");
+ } else if (is_dictionary()) {
+ snprintf(buf, sizeof(buf), "Var(DICTIONARY)");
+ } else if (is_array_buffer()) {
+ snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)");
+ } else {
+ buf[0] = '\0';
}
return buf;
}
« no previous file with comments | « ppapi/cpp/var.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698