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