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

Side by Side Diff: mojo/public/cpp/bindings/lib/callback_internal.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/lib/buffer.cc ('k') | mojo/public/cpp/bindings/lib/connector.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BINDINGS_LIB_CALLBACK_INTERNAL_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_CALLBACK_INTERNAL_H_
6 #define MOJO_PUBLIC_BINDINGS_LIB_CALLBACK_INTERNAL_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_CALLBACK_INTERNAL_H_
7 7
8 #include "mojo/public/bindings/lib/bindings_internal.h" 8 #include "mojo/public/cpp/bindings/lib/bindings_internal.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace internal { 11 namespace internal {
12 12
13 template <typename T, bool is_object_type = TypeTraits<T>::kIsObject> 13 template <typename T, bool is_object_type = TypeTraits<T>::kIsObject>
14 struct Callback_ParamTraits {}; 14 struct Callback_ParamTraits {};
15 15
16 template <typename T> 16 template <typename T>
17 struct Callback_ParamTraits<T, true> { 17 struct Callback_ParamTraits<T, true> {
18 typedef const T& ForwardType; 18 typedef const T& ForwardType;
(...skipping 26 matching lines...) Expand all
45 45
46 template <typename T> 46 template <typename T>
47 typename EnableIf<Callback_ParamTraits<T>::kIsScopedHandle, T>::type 47 typename EnableIf<Callback_ParamTraits<T>::kIsScopedHandle, T>::type
48 Callback_Forward(T& t) { 48 Callback_Forward(T& t) {
49 return t.Pass(); 49 return t.Pass();
50 } 50 }
51 51
52 } // namespace internal 52 } // namespace internal
53 } // namespace mojo 53 } // namespace mojo
54 54
55 #endif // MOJO_PUBLIC_BINDINGS_LIB_CALLBACK_INTERNAL_H_ 55 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_CALLBACK_INTERNAL_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/buffer.cc ('k') | mojo/public/cpp/bindings/lib/connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698