OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mash/example/main/main_application_delegate.h" | 5 #include "mash/example/main/main_application_delegate.h" |
6 | 6 |
7 #include "mojo/application/public/cpp/application_connection.h" | 7 #include "mojo/application/public/cpp/application_connection.h" |
8 #include "mojo/application/public/cpp/application_impl.h" | 8 #include "mojo/application/public/cpp/application_impl.h" |
9 | 9 |
10 MainApplicationDelegate::MainApplicationDelegate() {} | 10 MainApplicationDelegate::MainApplicationDelegate() {} |
11 | 11 |
12 MainApplicationDelegate::~MainApplicationDelegate() {} | 12 MainApplicationDelegate::~MainApplicationDelegate() {} |
13 | 13 |
14 void MainApplicationDelegate::Initialize(mojo::ApplicationImpl* app) { | 14 void MainApplicationDelegate::Initialize(mojo::ApplicationImpl* app) { |
15 connections_.push_back(app->ConnectToApplication("mojo:example_wm")); | 15 connections_.push_back(app->ConnectToApplication("mojo:mash_wm")); |
16 connections_.push_back(app->ConnectToApplication("mojo:mock_sysui")); | 16 connections_.push_back(app->ConnectToApplication("mojo:mock_sysui")); |
17 connections_.push_back(app->ConnectToApplication("mojo:views_examples")); | 17 connections_.push_back(app->ConnectToApplication("mojo:views_examples")); |
18 connections_.push_back( | 18 connections_.push_back( |
19 app->ConnectToApplication("exe:window_type_launcher_exe")); | 19 app->ConnectToApplication("exe:window_type_launcher_exe")); |
20 connections_.push_back(app->ConnectToApplication("exe:chrome")); | 20 connections_.push_back(app->ConnectToApplication("exe:chrome")); |
21 } | 21 } |
22 | 22 |
23 bool MainApplicationDelegate::ConfigureIncomingConnection( | 23 bool MainApplicationDelegate::ConfigureIncomingConnection( |
24 mojo::ApplicationConnection* connection) { | 24 mojo::ApplicationConnection* connection) { |
25 return false; | 25 return false; |
26 } | 26 } |
OLD | NEW |