OLD | NEW |
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_LIB_BINDINGS_INTERNAL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ |
7 | 7 |
8 #include "mojo/public/cpp/bindings/lib/template_util.h" | 8 #include "mojo/public/cpp/bindings/lib/template_util.h" |
| 9 #include "mojo/public/cpp/bindings/struct_ptr.h" |
9 #include "mojo/public/cpp/system/core.h" | 10 #include "mojo/public/cpp/system/core.h" |
10 | 11 |
11 namespace mojo { | 12 namespace mojo { |
12 class String; | 13 class String; |
13 | 14 |
14 namespace internal { | 15 namespace internal { |
15 template <typename T> | 16 template <typename T> |
16 class Array_Data; | 17 class Array_Data; |
17 | 18 |
18 #pragma pack(push, 1) | 19 #pragma pack(push, 1) |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 75 |
75 template <typename T> | 76 template <typename T> |
76 struct WrapperTraits<T, false> { | 77 struct WrapperTraits<T, false> { |
77 typedef T DataType; | 78 typedef T DataType; |
78 }; | 79 }; |
79 template <typename H> | 80 template <typename H> |
80 struct WrapperTraits<ScopedHandleBase<H>, true> { | 81 struct WrapperTraits<ScopedHandleBase<H>, true> { |
81 typedef H DataType; | 82 typedef H DataType; |
82 }; | 83 }; |
83 template <typename S> | 84 template <typename S> |
| 85 struct WrapperTraits<StructPtr<S>, true> { |
| 86 typedef typename S::Data_* DataType; |
| 87 }; |
| 88 template <typename S> |
| 89 struct WrapperTraits<InlinedStructPtr<S>, true> { |
| 90 typedef typename S::Data_* DataType; |
| 91 }; |
| 92 template <typename S> |
84 struct WrapperTraits<S, true> { | 93 struct WrapperTraits<S, true> { |
85 typedef typename S::Data_* DataType; | 94 typedef typename S::Data_* DataType; |
86 }; | 95 }; |
87 | 96 |
88 } // namespace internal | 97 } // namespace internal |
89 } // namespace mojo | 98 } // namespace mojo |
90 | 99 |
91 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ | 100 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDINGS_INTERNAL_H_ |
OLD | NEW |