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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc

Issue 9107046: PPAPI: Move PPB_ArrayBuffer out of Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gyp file, use 1_0 Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_var.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const PPB_Var_1_0* PluginVar::GetInterface1_0() { 134 const PPB_Var_1_0* PluginVar::GetInterface1_0() {
135 static const PPB_Var_1_0 var_interface = { 135 static const PPB_Var_1_0 var_interface = {
136 AddRef, 136 AddRef,
137 Release, 137 Release,
138 VarFromUtf8_1_0, 138 VarFromUtf8_1_0,
139 VarToUtf8 139 VarToUtf8
140 }; 140 };
141 return &var_interface; 141 return &var_interface;
142 } 142 }
143 143
144 const PPB_VarArrayBuffer_Dev* PluginVar::GetArrayBufferInterface() { 144 const PPB_VarArrayBuffer* PluginVar::GetArrayBufferInterface() {
145 static const PPB_VarArrayBuffer_Dev interface = { 145 static const PPB_VarArrayBuffer interface = {
146 CreateArrayBuffer, 146 CreateArrayBuffer,
147 ByteLength, 147 ByteLength,
148 Map 148 Map
149 }; 149 };
150 return &interface; 150 return &interface;
151 } 151 }
152 152
153 std::string PluginVar::DebugString(const PP_Var& var) { 153 std::string PluginVar::DebugString(const PP_Var& var) {
154 switch (var.type) { 154 switch (var.type) {
155 case PP_VARTYPE_UNDEFINED: 155 case PP_VARTYPE_UNDEFINED:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 break; 256 break;
257 case PP_VARTYPE_ARRAY: 257 case PP_VARTYPE_ARRAY:
258 case PP_VARTYPE_DICTIONARY: 258 case PP_VARTYPE_DICTIONARY:
259 case PP_VARTYPE_ARRAY_BUFFER: 259 case PP_VARTYPE_ARRAY_BUFFER:
260 NACL_NOTREACHED(); 260 NACL_NOTREACHED();
261 break; 261 break;
262 } 262 }
263 } 263 }
264 264
265 } // namespace ppapi_proxy 265 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698