| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "cc/surfaces/surface_id_allocator.h" | 8 #include "cc/surfaces/surface_id_allocator.h" |
| 9 #include "mojo/examples/surfaces_app/child.mojom.h" | 9 #include "mojo/examples/surfaces_app/child.mojom.h" |
| 10 #include "mojo/examples/surfaces_app/embedder.h" | 10 #include "mojo/examples/surfaces_app/embedder.h" |
| 11 #include "mojo/public/cpp/application/application_connection.h" | 11 #include "mojo/public/cpp/application/application_connection.h" |
| 12 #include "mojo/public/cpp/application/application_delegate.h" | 12 #include "mojo/public/cpp/application/application_delegate.h" |
| 13 #include "mojo/public/cpp/system/core.h" | 13 #include "mojo/public/cpp/system/core.h" |
| 14 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | |
| 15 #include "mojo/services/gles2/command_buffer.mojom.h" | 14 #include "mojo/services/gles2/command_buffer.mojom.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/surfaces/surfaces_type_converters.h" | 16 #include "mojo/services/public/cpp/surfaces/surfaces_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/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 20 | 19 |
| 21 namespace mojo { | 20 namespace mojo { |
| 22 namespace examples { | 21 namespace examples { |
| 23 | 22 |
| 24 class SurfacesApp : public ApplicationDelegate, | 23 class SurfacesApp : public ApplicationDelegate, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace examples | 130 } // namespace examples |
| 132 | 131 |
| 133 // static | 132 // static |
| 134 ApplicationDelegate* ApplicationDelegate::Create() { | 133 ApplicationDelegate* ApplicationDelegate::Create() { |
| 135 return new examples::SurfacesApp(); | 134 return new examples::SurfacesApp(); |
| 136 } | 135 } |
| 137 | 136 |
| 138 } // namespace mojo | 137 } // namespace mojo |
| OLD | NEW |