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

Side by Side Diff: mojo/apps/js/bindings/waiting_callback.h

Issue 107113005: Gin: Consolidate all the Converter<Wrappable> subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ok Created 7 years 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
« gin/wrappable.h ('K') | « gin/wrappable_unittest.cc ('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 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_APPS_JS_BINDINGS_WAITING_CALLBACK_H_ 5 #ifndef MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
6 #define MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_ 6 #define MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
7 7
8 #include "gin/handle.h" 8 #include "gin/handle.h"
9 #include "gin/runner.h" 9 #include "gin/runner.h"
10 #include "gin/wrappable.h" 10 #include "gin/wrappable.h"
(...skipping 28 matching lines...) Expand all
39 39
40 base::WeakPtr<gin::Runner> runner_; 40 base::WeakPtr<gin::Runner> runner_;
41 BindingsSupport::AsyncWaitID wait_id_; 41 BindingsSupport::AsyncWaitID wait_id_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(WaitingCallback); 43 DISALLOW_COPY_AND_ASSIGN(WaitingCallback);
44 }; 44 };
45 45
46 } // namespace js 46 } // namespace js
47 } // namespace mojo 47 } // namespace mojo
48 48
49 namespace gin {
50
51 template<>
52 struct Converter<mojo::js::WaitingCallback*>
53 : public WrappableConverter<mojo::js::WaitingCallback> {};
54
55 } // namespace gin
56
57 #endif // MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_ 49 #endif // MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
OLDNEW
« gin/wrappable.h ('K') | « gin/wrappable_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698