OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/package/mash_packaged_service.h" | 5 #include "mash/package/mash_packaged_service.h" |
6 | 6 |
7 #include "ash/autoclick/mus/autoclick_application.h" | 7 #include "ash/autoclick/mus/autoclick_application.h" |
8 #include "ash/mus/window_manager_application.h" | 8 #include "ash/mus/window_manager_application.h" |
9 #include "ash/touch_hud/mus/touch_hud_application.h" | 9 #include "ash/touch_hud/mus/touch_hud_application.h" |
10 #include "mash/app_driver/app_driver.h" | 10 #include "mash/app_driver/app_driver.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 service_.get(), std::move(request))); | 49 service_.get(), std::move(request))); |
50 return; | 50 return; |
51 } | 51 } |
52 LOG(ERROR) << "unknown name " << mojo_name; | 52 LOG(ERROR) << "unknown name " << mojo_name; |
53 NOTREACHED(); | 53 NOTREACHED(); |
54 } | 54 } |
55 | 55 |
56 // Please see header file for details on adding new services. | 56 // Please see header file for details on adding new services. |
57 std::unique_ptr<shell::Service> MashPackagedService::CreateService( | 57 std::unique_ptr<shell::Service> MashPackagedService::CreateService( |
58 const std::string& name) { | 58 const std::string& name) { |
59 if (name == "mojo:ash") | 59 if (name == "service:ash") |
60 return base::WrapUnique(new ash::mus::WindowManagerApplication); | 60 return base::WrapUnique(new ash::mus::WindowManagerApplication); |
61 if (name == "mojo:accessibility_autoclick") | 61 if (name == "service:accessibility_autoclick") |
62 return base::WrapUnique(new ash::autoclick::AutoclickApplication); | 62 return base::WrapUnique(new ash::autoclick::AutoclickApplication); |
63 if (name == "mojo:touch_hud") | 63 if (name == "service:touch_hud") |
64 return base::WrapUnique(new ash::touch_hud::TouchHudApplication); | 64 return base::WrapUnique(new ash::touch_hud::TouchHudApplication); |
65 if (name == "mojo:mash_session") | 65 if (name == "service:mash_session") |
66 return base::WrapUnique(new mash::session::Session); | 66 return base::WrapUnique(new mash::session::Session); |
67 if (name == "mojo:ui") | 67 if (name == "service:ui") |
68 return base::WrapUnique(new ui::Service); | 68 return base::WrapUnique(new ui::Service); |
69 if (name == "mojo:quick_launch") | 69 if (name == "service:quick_launch") |
70 return base::WrapUnique(new mash::quick_launch::QuickLaunch); | 70 return base::WrapUnique(new mash::quick_launch::QuickLaunch); |
71 if (name == "mojo:task_viewer") | 71 if (name == "service:task_viewer") |
72 return base::WrapUnique(new mash::task_viewer::TaskViewer); | 72 return base::WrapUnique(new mash::task_viewer::TaskViewer); |
73 if (name == "mojo:test_ime_driver") | 73 if (name == "service:test_ime_driver") |
74 return base::WrapUnique(new ui::test::TestIMEApplication); | 74 return base::WrapUnique(new ui::test::TestIMEApplication); |
75 #if defined(OS_LINUX) | 75 #if defined(OS_LINUX) |
76 if (name == "mojo:font_service") | 76 if (name == "service:font_service") |
77 return base::WrapUnique(new font_service::FontServiceApp); | 77 return base::WrapUnique(new font_service::FontServiceApp); |
78 #endif | 78 #endif |
79 if (name == "mojo:app_driver") | 79 if (name == "service:app_driver") |
80 return base::WrapUnique(new mash::app_driver::AppDriver); | 80 return base::WrapUnique(new mash::app_driver::AppDriver); |
81 return nullptr; | 81 return nullptr; |
82 } | 82 } |
83 | 83 |
84 } // namespace mash | 84 } // namespace mash |
OLD | NEW |