| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |