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

Side by Side Diff: mojo/public/cpp/bindings/tests/struct_with_traits_impl.h

Issue 2179273002: Mojo C++ bindings: support mapping T and T? differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 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
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_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_with_traits.typemap ('k') | mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698