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/catalog_viewer/catalog_viewer.h" | 5 #include "mash/catalog_viewer/catalog_viewer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 catalog::mojom::CatalogPtr catalog; | 192 catalog::mojom::CatalogPtr catalog; |
193 connector_->ConnectToInterface("mojo:catalog", &catalog); | 193 connector_->ConnectToInterface("mojo:catalog", &catalog); |
194 | 194 |
195 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( | 195 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( |
196 new CatalogViewerContents(this, std::move(catalog)), nullptr, | 196 new CatalogViewerContents(this, std::move(catalog)), nullptr, |
197 gfx::Rect(25, 25, 500, 600)); | 197 gfx::Rect(25, 25, 500, 600)); |
198 window->Show(); | 198 window->Show(); |
199 windows_.push_back(window); | 199 windows_.push_back(window); |
200 } | 200 } |
201 | 201 |
202 void CatalogViewer::Create(shell::Connection* connection, | 202 void CatalogViewer::Create(const shell::Identity& remote_identity, |
203 mojom::LaunchableRequest request) { | 203 mojom::LaunchableRequest request) { |
204 bindings_.AddBinding(this, std::move(request)); | 204 bindings_.AddBinding(this, std::move(request)); |
205 } | 205 } |
206 | 206 |
207 } // namespace catalog_viewer | 207 } // namespace catalog_viewer |
208 } // namespace mash | 208 } // namespace mash |
OLD | NEW |