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/services/native_viewport/native_viewport_service.h" | 5 #include "mojo/services/native_viewport/native_viewport_service.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "mojo/public/cpp/bindings/allocation_scope.h" | 10 #include "mojo/public/cpp/bindings/allocation_scope.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } // namespace mojo | 185 } // namespace mojo |
186 | 186 |
187 | 187 |
188 MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application* | 188 MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application* |
189 CreateNativeViewportService(mojo::shell::Context* context, | 189 CreateNativeViewportService(mojo::shell::Context* context, |
190 mojo::ScopedMessagePipeHandle shell_handle) { | 190 mojo::ScopedMessagePipeHandle shell_handle) { |
191 mojo::Application* app = new mojo::Application(shell_handle.Pass()); | 191 mojo::Application* app = new mojo::Application(shell_handle.Pass()); |
192 app->AddService<mojo::services::NativeViewportImpl>(context); | 192 app->AddService<mojo::services::NativeViewportImpl>(context); |
193 return app; | 193 return app; |
194 } | 194 } |
195 | |
OLD | NEW |