OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/cpp/var.h" | 5 #include "ppapi/cpp/var.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdio.h> | 8 #include <stdio.h> |
8 #include <string.h> | 9 #include <string.h> |
9 | 10 |
10 #include <algorithm> | 11 #include <algorithm> |
11 | 12 |
12 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
13 #include "ppapi/c/ppb_var.h" | 14 #include "ppapi/c/ppb_var.h" |
14 #include "ppapi/cpp/instance.h" | 15 #include "ppapi/cpp/instance.h" |
15 #include "ppapi/cpp/logging.h" | 16 #include "ppapi/cpp/logging.h" |
16 #include "ppapi/cpp/module.h" | 17 #include "ppapi/cpp/module.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)"); | 313 snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)"); |
313 } else if (is_resource()) { | 314 } else if (is_resource()) { |
314 snprintf(buf, sizeof(buf), "Var(RESOURCE)"); | 315 snprintf(buf, sizeof(buf), "Var(RESOURCE)"); |
315 } else { | 316 } else { |
316 buf[0] = '\0'; | 317 buf[0] = '\0'; |
317 } | 318 } |
318 return buf; | 319 return buf; |
319 } | 320 } |
320 | 321 |
321 } // namespace pp | 322 } // namespace pp |
OLD | NEW |