| 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 "mojo/public/c/system/main.h" |
| 5 #include "mojo/public/cpp/application/application_delegate.h" | 6 #include "mojo/public/cpp/application/application_delegate.h" |
| 7 #include "mojo/public/cpp/application/application_impl.h" |
| 8 #include "mojo/public/cpp/application/application_runner_chromium.h" |
| 6 #include "mojo/public/cpp/application/service_provider_impl.h" | 9 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 7 #include "mojo/services/public/cpp/view_manager/view_manager.h" | 10 #include "mojo/services/public/cpp/view_manager/view_manager.h" |
| 8 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" | 11 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" |
| 9 #include "mojo/services/public/cpp/view_manager/view_observer.h" | 12 #include "mojo/services/public/cpp/view_manager/view_observer.h" |
| 10 #include "mojo/services/public/cpp/view_manager/window_manager_delegate.h" | 13 #include "mojo/services/public/cpp/view_manager/window_manager_delegate.h" |
| 11 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" | 14 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" |
| 12 #include "mojo/services/window_manager/window_manager_app.h" | 15 #include "mojo/services/window_manager/window_manager_app.h" |
| 13 | 16 |
| 14 namespace examples { | 17 namespace examples { |
| 15 | 18 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 mojo::View* root_; | 113 mojo::View* root_; |
| 111 mojo::View* window_container_; | 114 mojo::View* window_container_; |
| 112 | 115 |
| 113 gfx::Point next_window_origin_; | 116 gfx::Point next_window_origin_; |
| 114 | 117 |
| 115 DISALLOW_COPY_AND_ASSIGN(SimpleWM); | 118 DISALLOW_COPY_AND_ASSIGN(SimpleWM); |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 } // namespace examples | 121 } // namespace examples |
| 119 | 122 |
| 120 namespace mojo { | 123 MojoResult MojoMain(MojoHandle shell_handle) { |
| 121 | 124 mojo::ApplicationRunnerChromium runner(new examples::SimpleWM); |
| 122 // static | 125 return runner.Run(shell_handle); |
| 123 ApplicationDelegate* ApplicationDelegate::Create() { | |
| 124 return new examples::SimpleWM; | |
| 125 } | 126 } |
| 126 | |
| 127 } // namespace | |
| OLD | NEW |