| 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/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76 } | 76 } | 
| 77 | 77 | 
| 78 NPObjectVar* Var::AsNPObjectVar() { | 78 NPObjectVar* Var::AsNPObjectVar() { | 
| 79   return NULL; | 79   return NULL; | 
| 80 } | 80 } | 
| 81 | 81 | 
| 82 ProxyObjectVar* Var::AsProxyObjectVar() { | 82 ProxyObjectVar* Var::AsProxyObjectVar() { | 
| 83   return NULL; | 83   return NULL; | 
| 84 } | 84 } | 
| 85 | 85 | 
|  | 86 ArrayVar* Var::AsArrayVar() { | 
|  | 87   return NULL; | 
|  | 88 } | 
|  | 89 | 
| 86 DictionaryVar* Var::AsDictionaryVar() { | 90 DictionaryVar* Var::AsDictionaryVar() { | 
| 87   return NULL; | 91   return NULL; | 
| 88 } | 92 } | 
| 89 | 93 | 
| 90 PP_Var Var::GetPPVar() { | 94 PP_Var Var::GetPPVar() { | 
| 91   int32 id = GetOrCreateVarID(); | 95   int32 id = GetOrCreateVarID(); | 
| 92   if (!id) | 96   if (!id) | 
| 93     return PP_MakeNull(); | 97     return PP_MakeNull(); | 
| 94 | 98 | 
| 95   PP_Var result; | 99   PP_Var result; | 
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198     return NULL; | 202     return NULL; | 
| 199   scoped_refptr<Var> var_object( | 203   scoped_refptr<Var> var_object( | 
| 200       PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); | 204       PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); | 
| 201   if (!var_object) | 205   if (!var_object) | 
| 202     return NULL; | 206     return NULL; | 
| 203   return var_object->AsArrayBufferVar(); | 207   return var_object->AsArrayBufferVar(); | 
| 204 } | 208 } | 
| 205 | 209 | 
| 206 }  // namespace ppapi | 210 }  // namespace ppapi | 
| 207 | 211 | 
| OLD | NEW | 
|---|