| 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 "ash/touch_hud/mus/touch_hud_application.h" | 5 #include "ash/touch_hud/mus/touch_hud_application.h" |
| 6 | 6 |
| 7 #include "ash/public/interfaces/container.mojom.h" | 7 #include "ash/public/interfaces/container.mojom.h" |
| 8 #include "ash/touch_hud/touch_hud_renderer.h" | 8 #include "ash/touch_hud/touch_hud_renderer.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 params.native_widget = new views::NativeWidgetMus( | 96 params.native_widget = new views::NativeWidgetMus( |
| 97 widget_, connector_, window, ui::mojom::SurfaceType::DEFAULT); | 97 widget_, connector_, window, ui::mojom::SurfaceType::DEFAULT); |
| 98 widget_->Init(params); | 98 widget_->Init(params); |
| 99 widget_->Show(); | 99 widget_->Show(); |
| 100 } else { | 100 } else { |
| 101 widget_->Close(); | 101 widget_->Close(); |
| 102 base::MessageLoop::current()->QuitWhenIdle(); | 102 base::MessageLoop::current()->QuitWhenIdle(); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 | 105 |
| 106 void TouchHudApplication::Create(shell::Connection* connection, | 106 void TouchHudApplication::Create(const shell::Identity& remote_identity, |
| 107 mash::mojom::LaunchableRequest request) { | 107 mash::mojom::LaunchableRequest request) { |
| 108 binding_.Bind(std::move(request)); | 108 binding_.Bind(std::move(request)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace touch_hud | 111 } // namespace touch_hud |
| 112 } // namespace ash | 112 } // namespace ash |
| OLD | NEW |