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 #ifndef PPAPI_CPP_VAR_ARRAY_BUFFER_H_ | 5 #ifndef PPAPI_CPP_VAR_ARRAY_BUFFER_H_ |
6 #define PPAPI_CPP_VAR_ARRAY_BUFFER_H_ | 6 #define PPAPI_CPP_VAR_ARRAY_BUFFER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/cpp/var.h" | 10 #include "ppapi/cpp/var.h" |
9 | 11 |
10 /// @file | 12 /// @file |
11 /// This file defines the API for interacting with a JavaScript ArrayBuffer. | 13 /// This file defines the API for interacting with a JavaScript ArrayBuffer. |
12 | 14 |
13 namespace pp { | 15 namespace pp { |
14 | 16 |
15 /// <code>VarArrayBuffer</code> provides a way to interact with JavaScript | 17 /// <code>VarArrayBuffer</code> provides a way to interact with JavaScript |
16 /// ArrayBuffers, which represent a contiguous sequence of bytes. Note that | 18 /// ArrayBuffers, which represent a contiguous sequence of bytes. Note that |
17 /// these vars are not part of the embedding page's DOM, and can only be | 19 /// these vars are not part of the embedding page's DOM, and can only be |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 /// to map the buffer again later. | 97 /// to map the buffer again later. |
96 void Unmap(); | 98 void Unmap(); |
97 | 99 |
98 private: | 100 private: |
99 void ConstructWithSize(uint32_t size_in_bytes); | 101 void ConstructWithSize(uint32_t size_in_bytes); |
100 }; | 102 }; |
101 | 103 |
102 } // namespace pp | 104 } // namespace pp |
103 | 105 |
104 #endif // PPAPI_CPP_VAR_ARRAY_BUFFER_H_ | 106 #endif // PPAPI_CPP_VAR_ARRAY_BUFFER_H_ |
OLD | NEW |