| 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 "mash/task_viewer/task_viewer.h" | 5 #include "mash/task_viewer/task_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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 connector_->ConnectToInterface("mojo:catalog", &catalog); | 318 connector_->ConnectToInterface("mojo:catalog", &catalog); |
| 319 | 319 |
| 320 TaskViewerContents* task_viewer = new TaskViewerContents( | 320 TaskViewerContents* task_viewer = new TaskViewerContents( |
| 321 this, std::move(request), std::move(catalog)); | 321 this, std::move(request), std::move(catalog)); |
| 322 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( | 322 views::Widget* window = views::Widget::CreateWindowWithContextAndBounds( |
| 323 task_viewer, nullptr, gfx::Rect(10, 10, 500, 500)); | 323 task_viewer, nullptr, gfx::Rect(10, 10, 500, 500)); |
| 324 window->Show(); | 324 window->Show(); |
| 325 windows_.push_back(window); | 325 windows_.push_back(window); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void TaskViewer::Create(shell::Connection* connection, | 328 void TaskViewer::Create(const shell::Identity& remote_identity, |
| 329 mojom::LaunchableRequest request) { | 329 mojom::LaunchableRequest request) { |
| 330 bindings_.AddBinding(this, std::move(request)); | 330 bindings_.AddBinding(this, std::move(request)); |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace task_viewer | 333 } // namespace task_viewer |
| 334 } // namespace main | 334 } // namespace main |
| OLD | NEW |