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

Side by Side Diff: third_party/WebKit/Source/platform/mojo/MojoHelper.h

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/platform/mojo/DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MojoHelper_h 5 #ifndef MojoHelper_h
6 #define MojoHelper_h 6 #define MojoHelper_h
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "mojo/public/cpp/bindings/callback.h"
10 #include "mojo/public/cpp/bindings/wtf_array.h" 9 #include "mojo/public/cpp/bindings/wtf_array.h"
11 #include "platform/heap/HeapAllocator.h" 10 #include "platform/heap/HeapAllocator.h"
12 #include <utility> 11 #include <utility>
13 12
14 namespace blink { 13 namespace blink {
15 14
16 namespace internal { 15 namespace internal {
17 16
18 template <typename R, typename... Args> 17 template <typename R, typename... Args>
19 R CallWTFFunction(Function<R(Args...)>* functor, Args... args) 18 R CallWTFFunction(Function<R(Args...)>* functor, Args... args)
(...skipping 23 matching lines...) Expand all
43 WTFArray<T> result(input.size()); 42 WTFArray<T> result(input.size());
44 for (size_t i = 0; i < input.size(); ++i) 43 for (size_t i = 0; i < input.size(); ++i)
45 result[i] = TypeConverter<T, E>::Convert(input[i]); 44 result[i] = TypeConverter<T, E>::Convert(input[i]);
46 return std::move(result); 45 return std::move(result);
47 } 46 }
48 }; 47 };
49 48
50 } // namespace mojo 49 } // namespace mojo
51 50
52 #endif // MojoHelper_h 51 #endif // MojoHelper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mojo/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698