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

Side by Side Diff: ppapi/cpp/dev/array_buffer_dev.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_DEV_ARRAY_BUFFER_DEV_H_
6 #define PPAPI_CPP_DEV_ARRAY_BUFFER_DEV_H_
7
8 #include "ppapi/cpp/var.h"
9
10 namespace pp {
11 class Var;
12 }
13
14 template <class T>
15 class ArrayBuffer_Dev : public Var {
16 public:
17 ArrayBuffer_Dev();
18 explicit ArrayBuffer_Dev(const Var& var);
19 explicit ArrayBuffer_Dev(const ArrayBuffer& buffer) : Var(buffer) {}
20 explicit ArrayBuffer_Dev(uint32_t size_in_bytes);
21
22 uint32_t ByteLength() const;
23
24 void* GetBuffer();
25 const void* GetBuffer() const;
26
27 virtual ~ArrayBuffer_Dev() {}
28 };
29
30 } // namespace pp
31
32 #endif // PPAPI_CPP_DEV_ARRAY_BUFFER_DEV_H_
OLDNEW
« ppapi/api/pp_var.idl ('K') | « ppapi/c/pp_var.h ('k') | ppapi/cpp/dev/array_buffer_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698