| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/cpp/dev/scriptable_object_deprecated.h" | 5 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" |
| 6 #include "ppapi/c/dev/ppb_memory_dev.h" | 6 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 7 #include "ppapi/c/dev/ppp_class_deprecated.h" | 7 #include "ppapi/c/dev/ppp_class_deprecated.h" |
| 8 #include "ppapi/cpp/module.h" | 8 #include "ppapi/cpp/module.h" |
| 9 #include "ppapi/cpp/var.h" | 9 #include "ppapi/cpp/var.h" |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 Var ScriptableObject::Call(const Var& /*method_name*/, | 172 Var ScriptableObject::Call(const Var& /*method_name*/, |
| 173 const std::vector<Var>& /*args*/, | 173 const std::vector<Var>& /*args*/, |
| 174 Var* exception) { | 174 Var* exception) { |
| 175 *exception = Var("Method does not exist to call in ScriptableObject"); | 175 *exception = Var("Method does not exist to call in ScriptableObject"); |
| 176 return Var(); | 176 return Var(); |
| 177 } | 177 } |
| 178 | 178 |
| 179 Var ScriptableObject::Construct(const std::vector<Var>& /*args*/, | 179 Var ScriptableObject::Construct(const std::vector<Var>& /*args*/, |
| 180 Var* exception) { | 180 Var* exception) { |
| 181 *exception = Var("Constuct method does not exist in ScriptableObject"); | 181 *exception = Var("Construct method does not exist in ScriptableObject"); |
| 182 return Var(); | 182 return Var(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 // static | 185 // static |
| 186 const PPP_Class_Deprecated* ScriptableObject::GetClass() { | 186 const PPP_Class_Deprecated* ScriptableObject::GetClass() { |
| 187 return &plugin_class; | 187 return &plugin_class; |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace deprecated | 190 } // namespace deprecated |
| 191 | 191 |
| 192 } // namespace pp | 192 } // namespace pp |
| OLD | NEW |