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

Side by Side Diff: ppapi/cpp/extensions/to_var_converter.h

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/cpp/extensions/from_var_converter.h ('k') | ppapi/cpp/var_array.h » ('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 #ifndef PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_ 5 #ifndef PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_
6 #define PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_ 6 #define PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/cpp/dev/var_array_dev.h"
12 #include "ppapi/cpp/dev/var_dictionary_dev.h"
13 #include "ppapi/cpp/extensions/optional.h" 11 #include "ppapi/cpp/extensions/optional.h"
14 #include "ppapi/cpp/var.h" 12 #include "ppapi/cpp/var.h"
13 #include "ppapi/cpp/var_array.h"
15 #include "ppapi/cpp/var_array_buffer.h" 14 #include "ppapi/cpp/var_array_buffer.h"
15 #include "ppapi/cpp/var_dictionary.h"
16 16
17 namespace pp { 17 namespace pp {
18 namespace ext { 18 namespace ext {
19 namespace internal { 19 namespace internal {
20 20
21 class ToVarConverterBase { 21 class ToVarConverterBase {
22 public: 22 public:
23 PP_Var pp_var() const { 23 PP_Var pp_var() const {
24 return var_.pp_var(); 24 return var_.pp_var();
25 } 25 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 class ToVarConverter<Var> : public ToVarConverterBase { 113 class ToVarConverter<Var> : public ToVarConverterBase {
114 public: 114 public:
115 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) { 115 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) {
116 } 116 }
117 117
118 ~ToVarConverter() { 118 ~ToVarConverter() {
119 } 119 }
120 }; 120 };
121 121
122 template <> 122 template <>
123 class ToVarConverter<VarArray_Dev> : public ToVarConverterBase { 123 class ToVarConverter<VarArray> : public ToVarConverterBase {
124 public: 124 public:
125 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) { 125 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) {
126 } 126 }
127 127
128 ~ToVarConverter() { 128 ~ToVarConverter() {
129 } 129 }
130 }; 130 };
131 131
132 template <> 132 template <>
133 class ToVarConverter<VarDictionary_Dev> : public ToVarConverterBase { 133 class ToVarConverter<VarDictionary> : public ToVarConverterBase {
134 public: 134 public:
135 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) { 135 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) {
136 } 136 }
137 137
138 ~ToVarConverter() { 138 ~ToVarConverter() {
139 } 139 }
140 }; 140 };
141 141
142 template <> 142 template <>
143 class ToVarConverter<VarArrayBuffer> : public ToVarConverterBase { 143 class ToVarConverter<VarArrayBuffer> : public ToVarConverterBase {
144 public: 144 public:
145 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) { 145 explicit ToVarConverter(const Var& object) : ToVarConverterBase(object) {
146 } 146 }
147 147
148 ~ToVarConverter() { 148 ~ToVarConverter() {
149 } 149 }
150 }; 150 };
151 151
152 } // namespace internal 152 } // namespace internal
153 } // namespace ext 153 } // namespace ext
154 } // namespace pp 154 } // namespace pp
155 155
156 #endif // PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_ 156 #endif // PPAPI_CPP_EXTENSIONS_TO_VAR_CONVERTOR_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/extensions/from_var_converter.h ('k') | ppapi/cpp/var_array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698