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 "components/mus/example/mock_sysui/mock_sysui.h" | 5 #include "components/mus/example/mock_sysui/mock_sysui.h" |
6 | 6 |
7 #include "components/mus/public/cpp/property_type_converters.h" | 7 #include "components/mus/public/cpp/property_type_converters.h" |
8 #include "mash/wm/public/interfaces/container.mojom.h" | 8 #include "mash/wm/public/interfaces/container.mojom.h" |
9 #include "mojo/application/public/cpp/application_connection.h" | 9 #include "mojo/application/public/cpp/application_connection.h" |
10 #include "mojo/application/public/cpp/application_impl.h" | 10 #include "mojo/application/public/cpp/application_impl.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }; | 88 }; |
89 | 89 |
90 } // namespace | 90 } // namespace |
91 | 91 |
92 MockSysUI::MockSysUI() {} | 92 MockSysUI::MockSysUI() {} |
93 | 93 |
94 MockSysUI::~MockSysUI() { | 94 MockSysUI::~MockSysUI() { |
95 } | 95 } |
96 | 96 |
97 void MockSysUI::Initialize(mojo::ApplicationImpl* app) { | 97 void MockSysUI::Initialize(mojo::ApplicationImpl* app) { |
| 98 tracing_.Initialize(app); |
| 99 |
98 aura_init_.reset(new views::AuraInit(app, "views_mus_resources.pak")); | 100 aura_init_.reset(new views::AuraInit(app, "views_mus_resources.pak")); |
99 views::WindowManagerConnection::Create(app); | 101 views::WindowManagerConnection::Create(app); |
100 | 102 |
101 DesktopBackground::Create(app->shell()); | 103 DesktopBackground::Create(app->shell()); |
102 Shelf::Create(app->shell()); | 104 Shelf::Create(app->shell()); |
103 } | 105 } |
104 | 106 |
105 bool MockSysUI::ConfigureIncomingConnection( | 107 bool MockSysUI::ConfigureIncomingConnection( |
106 mojo::ApplicationConnection* connection) { | 108 mojo::ApplicationConnection* connection) { |
107 return false; | 109 return false; |
108 } | 110 } |
OLD | NEW |