| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/c/ppb_var_dictionary.h" | 5 #include "ppapi/c/ppb_var_dictionary.h" |
| 6 #include "ppapi/c/pp_bool.h" | 6 #include "ppapi/c/pp_bool.h" |
| 7 #include "ppapi/c/pp_var.h" | 7 #include "ppapi/c/pp_var.h" |
| 8 #include "ppapi/shared_impl/dictionary_var.h" | 8 #include "ppapi/shared_impl/dictionary_var.h" |
| 9 #include "ppapi/shared_impl/proxy_lock.h" | 9 #include "ppapi/shared_impl/proxy_lock.h" |
| 10 #include "ppapi/thunk/thunk.h" | 10 #include "ppapi/thunk/thunk.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 PP_Var GetKeys(PP_Var dict) { | 61 PP_Var GetKeys(PP_Var dict) { |
| 62 ProxyAutoLock lock; | 62 ProxyAutoLock lock; |
| 63 | 63 |
| 64 DictionaryVar* dict_var = DictionaryVar::FromPPVar(dict); | 64 DictionaryVar* dict_var = DictionaryVar::FromPPVar(dict); |
| 65 if (!dict_var) | 65 if (!dict_var) |
| 66 return PP_MakeNull(); | 66 return PP_MakeNull(); |
| 67 return dict_var->GetKeys(); | 67 return dict_var->GetKeys(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 const PPB_VarDictionary_1_0 g_ppb_vardictionary_1_0_thunk = { | 70 const PPB_VarDictionary_1_0 g_ppb_vardictionary_1_0_thunk = { |
| 71 &Create, | 71 &Create, &Get, &Set, &Delete, &HasKey, &GetKeys}; |
| 72 &Get, | |
| 73 &Set, | |
| 74 &Delete, | |
| 75 &HasKey, | |
| 76 &GetKeys | |
| 77 }; | |
| 78 | 72 |
| 79 } // namespace | 73 } // namespace |
| 80 | 74 |
| 81 const PPB_VarDictionary_1_0* GetPPB_VarDictionary_1_0_Thunk() { | 75 const PPB_VarDictionary_1_0* GetPPB_VarDictionary_1_0_Thunk() { |
| 82 return &g_ppb_vardictionary_1_0_thunk; | 76 return &g_ppb_vardictionary_1_0_thunk; |
| 83 } | 77 } |
| 84 | 78 |
| 85 } // namespace thunk | 79 } // namespace thunk |
| 86 } // namespace ppapi | 80 } // namespace ppapi |
| OLD | NEW |