OLD | NEW |
| (Empty) |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/task_manager.h" | |
6 | |
7 #include <vector> | |
8 | |
9 #include "base/logging.h" | |
10 | |
11 namespace { | |
12 | |
13 class TaskManagerViewImpl : public TaskManagerView, | |
14 public TaskManagerModelObserver { | |
15 public: | |
16 TaskManagerViewImpl(TaskManagerModel* model) { | |
17 model->SetObserver(this); | |
18 } | |
19 | |
20 // TaskManagerView | |
21 virtual void GetSelection(std::vector<int>* selection); | |
22 virtual void GetFocused(std::vector<int>* focused); | |
23 virtual void OpenWindow(); | |
24 virtual void ActivateWindow(); | |
25 virtual void CloseWindow(); | |
26 | |
27 // TaskManagerModelObserver | |
28 virtual void OnModelChanged(); | |
29 virtual void OnItemsChanged(int start, int length); | |
30 virtual void OnItemsAdded(int start, int length); | |
31 virtual void OnItemsRemoved(int start, int length); | |
32 }; | |
33 | |
34 void TaskManagerViewImpl::GetSelection(std::vector<int>* selection) { | |
35 NOTIMPLEMENTED(); | |
36 } | |
37 | |
38 void TaskManagerViewImpl::GetFocused(std::vector<int>* focused) { | |
39 NOTIMPLEMENTED(); | |
40 } | |
41 | |
42 void TaskManagerViewImpl::OpenWindow() { | |
43 NOTIMPLEMENTED(); | |
44 } | |
45 | |
46 void TaskManagerViewImpl::ActivateWindow() { | |
47 NOTIMPLEMENTED(); | |
48 } | |
49 | |
50 void TaskManagerViewImpl::CloseWindow() { | |
51 NOTIMPLEMENTED(); | |
52 } | |
53 | |
54 void TaskManagerViewImpl::OnModelChanged() { | |
55 NOTIMPLEMENTED(); | |
56 } | |
57 | |
58 void TaskManagerViewImpl::OnItemsChanged(int start, int length) { | |
59 NOTIMPLEMENTED(); | |
60 } | |
61 | |
62 void TaskManagerViewImpl::OnItemsAdded(int start, int length) { | |
63 NOTIMPLEMENTED(); | |
64 } | |
65 | |
66 void TaskManagerViewImpl::OnItemsRemoved(int start, int length) { | |
67 NOTIMPLEMENTED(); | |
68 } | |
69 | |
70 } // namespace | |
71 | |
72 void TaskManager::CreateView() { | |
73 DCHECK(!view_); | |
74 view_= new TaskManagerViewImpl(model_.get()); | |
75 } | |
OLD | NEW |