| 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/quick_launch/quick_launch_application.h" | 5 #include "mash/quick_launch/quick_launch_application.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 catalog::mojom::CatalogPtr catalog; | 191 catalog::mojom::CatalogPtr catalog; |
| 192 connector_->ConnectToInterface("mojo:catalog", &catalog); | 192 connector_->ConnectToInterface("mojo:catalog", &catalog); |
| 193 | 193 |
| 194 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( | 194 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( |
| 195 new QuickLaunchUI(this, connector_, std::move(catalog)), nullptr, | 195 new QuickLaunchUI(this, connector_, std::move(catalog)), nullptr, |
| 196 gfx::Rect(10, 640, 0, 0)); | 196 gfx::Rect(10, 640, 0, 0)); |
| 197 window->Show(); | 197 window->Show(); |
| 198 windows_.push_back(window); | 198 windows_.push_back(window); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void QuickLaunchApplication::Create(shell::Connection* connection, | 201 void QuickLaunchApplication::Create(const shell::Identity& remote_identity, |
| 202 mojom::LaunchableRequest request) { | 202 mojom::LaunchableRequest request) { |
| 203 bindings_.AddBinding(this, std::move(request)); | 203 bindings_.AddBinding(this, std::move(request)); |
| 204 } | 204 } |
| 205 | 205 |
| 206 } // namespace quick_launch | 206 } // namespace quick_launch |
| 207 } // namespace mash | 207 } // namespace mash |
| OLD | NEW |