Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: ppapi/thunk/ppb_var_dictionary_thunk.cc

Issue 17005006: Move PPB_VarArray and PPB_VarDictionary out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_var_array_thunk.cc ('k') | webkit/common/plugins/ppapi/ppapi_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_var_array_thunk.cc ('k') | webkit/common/plugins/ppapi/ppapi_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698