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/shared_impl/var.h" | 5 #include "ppapi/shared_impl/var.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 return "[Invalid var]"; | 75 return "[Invalid var]"; |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 StringVar* Var::AsStringVar() { return NULL; } | 79 StringVar* Var::AsStringVar() { return NULL; } |
80 | 80 |
81 ArrayBufferVar* Var::AsArrayBufferVar() { return NULL; } | 81 ArrayBufferVar* Var::AsArrayBufferVar() { return NULL; } |
82 | 82 |
83 NPObjectVar* Var::AsNPObjectVar() { return NULL; } | 83 NPObjectVar* Var::AsNPObjectVar() { return NULL; } |
84 | 84 |
| 85 V8ObjectVar* Var::AsV8ObjectVar() { return NULL; } |
| 86 |
85 ProxyObjectVar* Var::AsProxyObjectVar() { return NULL; } | 87 ProxyObjectVar* Var::AsProxyObjectVar() { return NULL; } |
86 | 88 |
87 ArrayVar* Var::AsArrayVar() { return NULL; } | 89 ArrayVar* Var::AsArrayVar() { return NULL; } |
88 | 90 |
89 DictionaryVar* Var::AsDictionaryVar() { return NULL; } | 91 DictionaryVar* Var::AsDictionaryVar() { return NULL; } |
90 | 92 |
91 ResourceVar* Var::AsResourceVar() { return NULL; } | 93 ResourceVar* Var::AsResourceVar() { return NULL; } |
92 | 94 |
93 PP_Var Var::GetPPVar() { | 95 PP_Var Var::GetPPVar() { |
94 int32 id = GetOrCreateVarID(); | 96 int32 id = GetOrCreateVarID(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 if (var.type != PP_VARTYPE_ARRAY_BUFFER) | 188 if (var.type != PP_VARTYPE_ARRAY_BUFFER) |
187 return NULL; | 189 return NULL; |
188 scoped_refptr<Var> var_object( | 190 scoped_refptr<Var> var_object( |
189 PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); | 191 PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); |
190 if (!var_object.get()) | 192 if (!var_object.get()) |
191 return NULL; | 193 return NULL; |
192 return var_object->AsArrayBufferVar(); | 194 return var_object->AsArrayBufferVar(); |
193 } | 195 } |
194 | 196 |
195 } // namespace ppapi | 197 } // namespace ppapi |
OLD | NEW |