Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: chrome/browser/task_manager_linux.cc

Issue 140044: Reorganize the way the task manager is constructed.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/task_manager_browsertest.cc ('k') | chrome/browser/task_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager_browsertest.cc ('k') | chrome/browser/task_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698