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

Side by Side Diff: mojo/public/cpp/bindings/struct_traits.h

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
7 7
8 namespace mojo { 8 namespace mojo {
9 9
10 // This must be specialized for any type |T| to be serialized/deserialized as 10 // This must be specialized for any type |T| to be serialized/deserialized as
(...skipping 15 matching lines...) Expand all
26 // Serializable form of a field: 26 // Serializable form of a field:
27 // Value or reference of the same type used in the generated stuct 27 // Value or reference of the same type used in the generated stuct
28 // wrapper type, or the following alternatives: 28 // wrapper type, or the following alternatives:
29 // - string: 29 // - string:
30 // Value or reference of any type that has a StringTraits defined. 30 // Value or reference of any type that has a StringTraits defined.
31 // Supported by default: base::StringPiece, std::string, 31 // Supported by default: base::StringPiece, std::string,
32 // WTF::String (in blink). 32 // WTF::String (in blink).
33 // 33 //
34 // - array: 34 // - array:
35 // Value or reference of any type that has an ArrayTraits defined. 35 // Value or reference of any type that has an ArrayTraits defined.
36 // Supported by default: std::vector, CArray, mojo::Array, WTF::Vector 36 // Supported by default: std::vector, CArray, WTF::Vector (in blink)
37 // (in blink).
38 // 37 //
39 // - map: 38 // - map:
40 // Value or reference of any type that has a MapTraits defined. 39 // Value or reference of any type that has a MapTraits defined.
41 // Supported by default: std::map, std::unordered_map, 40 // Supported by default: std::map, std::unordered_map,
42 // WTF::HashMap (in blink). 41 // WTF::HashMap (in blink).
43 // 42 //
44 // - struct: 43 // - struct:
45 // Value or reference of any type that has a StructTraits defined. 44 // Value or reference of any type that has a StructTraits defined.
46 // 45 //
47 // - enum: 46 // - enum:
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // 156 //
158 // static bool Read(FooDataView data, CustomFoo* output); 157 // static bool Read(FooDataView data, CustomFoo* output);
159 // }; 158 // };
160 // 159 //
161 template <typename DataViewType, typename T> 160 template <typename DataViewType, typename T>
162 struct StructTraits; 161 struct StructTraits;
163 162
164 } // namespace mojo 163 } // namespace mojo
165 164
166 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_ 165 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698