OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // A type which knows how to look like a mojo::test::MoveOnlyStructWithTraits | 100 // A type which knows how to look like a mojo::test::MoveOnlyStructWithTraits |
101 // mojom type by way of mojo::StructTraits. | 101 // mojom type by way of mojo::StructTraits. |
102 class MoveOnlyStructWithTraitsImpl { | 102 class MoveOnlyStructWithTraitsImpl { |
103 public: | 103 public: |
104 MoveOnlyStructWithTraitsImpl(); | 104 MoveOnlyStructWithTraitsImpl(); |
105 MoveOnlyStructWithTraitsImpl(MoveOnlyStructWithTraitsImpl&& other); | 105 MoveOnlyStructWithTraitsImpl(MoveOnlyStructWithTraitsImpl&& other); |
106 ~MoveOnlyStructWithTraitsImpl(); | 106 ~MoveOnlyStructWithTraitsImpl(); |
107 | 107 |
108 ScopedHandle& get_mutable_handle() { return handle_; } | 108 ScopedHandle& get_mutable_handle() { return handle_; } |
109 | 109 |
| 110 MoveOnlyStructWithTraitsImpl& operator=(MoveOnlyStructWithTraitsImpl&& other); |
| 111 |
110 private: | 112 private: |
111 ScopedHandle handle_; | 113 ScopedHandle handle_; |
112 DISALLOW_COPY_AND_ASSIGN(MoveOnlyStructWithTraitsImpl); | 114 DISALLOW_COPY_AND_ASSIGN(MoveOnlyStructWithTraitsImpl); |
113 }; | 115 }; |
114 | 116 |
115 } // namespace test | 117 } // namespace test |
116 } // namespace mojo | 118 } // namespace mojo |
117 | 119 |
118 #endif // MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ | 120 #endif // MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_H_ |
OLD | NEW |