| 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/dev/ppb_var_dictionary_dev.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" |
| 11 | 11 |
| 12 namespace ppapi { | 12 namespace ppapi { |
| 13 namespace thunk { | 13 namespace thunk { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 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_Dev_0_1 g_ppb_vardictionary_0_1_thunk = { | 70 const PPB_VarDictionary_1_0 g_ppb_vardictionary_1_0_thunk = { |
| 71 &Create, | 71 &Create, |
| 72 &Get, | 72 &Get, |
| 73 &Set, | 73 &Set, |
| 74 &Delete, | 74 &Delete, |
| 75 &HasKey, | 75 &HasKey, |
| 76 &GetKeys | 76 &GetKeys |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace | 79 } // namespace |
| 80 | 80 |
| 81 const PPB_VarDictionary_Dev_0_1* GetPPB_VarDictionary_Dev_0_1_Thunk() { | 81 const PPB_VarDictionary_1_0* GetPPB_VarDictionary_1_0_Thunk() { |
| 82 return &g_ppb_vardictionary_0_1_thunk; | 82 return &g_ppb_vardictionary_1_0_thunk; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace thunk | 85 } // namespace thunk |
| 86 } // namespace ppapi | 86 } // namespace ppapi |
| OLD | NEW |