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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 struct InstanceInfo { | 76 struct InstanceInfo { |
77 InstanceInfo(const shell::Identity& identity, base::ProcessId pid) | 77 InstanceInfo(const shell::Identity& identity, base::ProcessId pid) |
78 : identity(identity), pid(pid) {} | 78 : identity(identity), pid(pid) {} |
79 shell::Identity identity; | 79 shell::Identity identity; |
80 uint32_t pid; | 80 uint32_t pid; |
81 std::string display_name; | 81 std::string display_name; |
82 }; | 82 }; |
83 | 83 |
84 | 84 |
85 // Overridden from views::WidgetDelegate: | 85 // Overridden from views::WidgetDelegate: |
86 views::View* GetContentsView() override { return this; } | |
87 base::string16 GetWindowTitle() const override { | 86 base::string16 GetWindowTitle() const override { |
88 // TODO(beng): use resources. | 87 // TODO(beng): use resources. |
89 return base::ASCIIToUTF16("Tasks"); | 88 return base::ASCIIToUTF16("Tasks"); |
90 } | 89 } |
91 bool CanResize() const override { return true; } | 90 bool CanResize() const override { return true; } |
92 bool CanMaximize() const override { return true; } | 91 bool CanMaximize() const override { return true; } |
93 bool CanMinimize() const override { return true; } | 92 bool CanMinimize() const override { return true; } |
94 | 93 |
95 gfx::ImageSkia GetWindowAppIcon() override { | 94 gfx::ImageSkia GetWindowAppIcon() override { |
96 // TODO(jamescook): Create a new .pak file for this app and make a custom | 95 // TODO(jamescook): Create a new .pak file for this app and make a custom |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 windows_.push_back(window); | 323 windows_.push_back(window); |
325 } | 324 } |
326 | 325 |
327 void TaskViewer::Create(const shell::Identity& remote_identity, | 326 void TaskViewer::Create(const shell::Identity& remote_identity, |
328 mojom::LaunchableRequest request) { | 327 mojom::LaunchableRequest request) { |
329 bindings_.AddBinding(this, std::move(request)); | 328 bindings_.AddBinding(this, std::move(request)); |
330 } | 329 } |
331 | 330 |
332 } // namespace task_viewer | 331 } // namespace task_viewer |
333 } // namespace main | 332 } // namespace main |
OLD | NEW |