| OLD | NEW |
| 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 #include "mojo/apps/js/bindings/threading.h" | 5 #include "mojo/apps/js/bindings/threading.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | |
| 8 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 9 #include "gin/function_template.h" | |
| 10 #include "gin/object_template_builder.h" | 8 #include "gin/object_template_builder.h" |
| 11 #include "gin/per_isolate_data.h" | 9 #include "gin/per_isolate_data.h" |
| 12 #include "mojo/apps/js/bindings/handle.h" | 10 #include "mojo/apps/js/bindings/handle.h" |
| 13 | 11 |
| 14 namespace mojo { | 12 namespace mojo { |
| 15 namespace apps { | 13 namespace apps { |
| 16 | 14 |
| 17 namespace { | 15 namespace { |
| 18 | 16 |
| 19 void Quit() { | 17 void Quit() { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 templ = gin::ObjectTemplateBuilder(isolate) | 33 templ = gin::ObjectTemplateBuilder(isolate) |
| 36 .SetMethod("quit", Quit) | 34 .SetMethod("quit", Quit) |
| 37 .Build(); | 35 .Build(); |
| 38 | 36 |
| 39 data->SetObjectTemplate(&g_wrapper_info, templ); | 37 data->SetObjectTemplate(&g_wrapper_info, templ); |
| 40 } | 38 } |
| 41 | 39 |
| 42 return templ; | 40 return templ; |
| 43 } | 41 } |
| 44 | 42 |
| 43 Threading::Threading() { |
| 44 } |
| 45 |
| 45 } // namespace apps | 46 } // namespace apps |
| 46 } // namespace mojo | 47 } // namespace mojo |
| OLD | NEW |