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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "mojo/public/cpp/application/application_delegate.h" | 11 #include "mojo/public/cpp/application/application_delegate.h" |
12 #include "mojo/public/cpp/application/interface_factory.h" | 12 #include "mojo/public/cpp/application/interface_factory.h" |
13 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | |
14 #include "mojo/services/gles2/command_buffer_impl.h" | 13 #include "mojo/services/gles2/command_buffer_impl.h" |
15 #include "mojo/services/native_viewport/native_viewport.h" | 14 #include "mojo/services/native_viewport/native_viewport.h" |
16 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 15 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" |
17 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 16 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" |
18 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" | 17 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.
h" |
19 #include "ui/events/event.h" | 18 #include "ui/events/event.h" |
20 | 19 |
21 namespace mojo { | 20 namespace mojo { |
22 namespace services { | 21 namespace services { |
23 namespace { | 22 namespace { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 CreateNativeViewportService( | 174 CreateNativeViewportService( |
176 ScopedMessagePipeHandle service_provider_handle) { | 175 ScopedMessagePipeHandle service_provider_handle) { |
177 ApplicationImpl* app = new ApplicationImpl( | 176 ApplicationImpl* app = new ApplicationImpl( |
178 new NVSDelegate(), service_provider_handle.Pass()); | 177 new NVSDelegate(), service_provider_handle.Pass()); |
179 return app; | 178 return app; |
180 } | 179 } |
181 | 180 |
182 } // namespace services | 181 } // namespace services |
183 } // namespace mojo | 182 } // namespace mojo |
184 | 183 |
OLD | NEW |