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

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

Issue 220243007: Mojo: Move mojo/public/bindings/lib to mojo/public/cpp/bindings/lib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « mojo/public/cpp/bindings/allocation_scope.h ('k') | mojo/public/cpp/bindings/callback.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "mojo/public/bindings/lib/array_internal.h" 14 #include "mojo/public/cpp/bindings/lib/array_internal.h"
15 #include "mojo/public/cpp/bindings/type_converter.h" 15 #include "mojo/public/cpp/bindings/type_converter.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 // Provides read-only access to array data. 19 // Provides read-only access to array data.
20 template <typename T> 20 template <typename T>
21 class Array { 21 class Array {
22 public: 22 public:
23 typedef internal::ArrayTraits<T, internal::TypeTraits<T>::kIsObject> Traits_; 23 typedef internal::ArrayTraits<T, internal::TypeTraits<T>::kIsObject> Traits_;
24 typedef typename Traits_::DataType Data; 24 typedef typename Traits_::DataType Data;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 for (size_t i = 0; i < input.size(); ++i) 148 for (size_t i = 0; i < input.size(); ++i)
149 result[i] = TypeConverter<T, E>::ConvertTo(input[i]); 149 result[i] = TypeConverter<T, E>::ConvertTo(input[i]);
150 } 150 }
151 return result; 151 return result;
152 } 152 }
153 }; 153 };
154 154
155 } // namespace mojo 155 } // namespace mojo
156 156
157 #endif // MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_ 157 #endif // MOJO_PUBLIC_CPP_BINDINGS_ARRAY_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/allocation_scope.h ('k') | mojo/public/cpp/bindings/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698