diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 14:01:58 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 14:01:58 +0000 |
commit | 0da19221d7b32e3331ad50b2c9e642697e49ff05 (patch) | |
tree | 19e1cebe40b9e3a21ed67675769ba82284f42e99 /chrome/browser/task_manager.h | |
parent | 81c78ac1f4407d0a9b1fa1dbb41916ababa225c7 (diff) | |
download | chromium_src-0da19221d7b32e3331ad50b2c9e642697e49ff05.zip chromium_src-0da19221d7b32e3331ad50b2c9e642697e49ff05.tar.gz chromium_src-0da19221d7b32e3331ad50b2c9e642697e49ff05.tar.bz2 |
Extract Windows-specific parts of TaskManager.
- task_manager.cc compiles on POSIX
- task_manager_unittest.cc passes on Linux
- stub TaskManagerViewImpl for Linux (so that the unit test can pass)
TEST=Task manager should not be obviously broken on Windows.
http://crbug.com/11461
Review URL: http://codereview.chromium.org/115295
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index b01a30f..d58a21e 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -24,7 +24,7 @@ class MessageLoop; class SkBitmap; class TaskManager; -class TaskManagerContents; +class TaskManagerView; class TaskManagerModel; struct BytesReadParam; @@ -138,7 +138,7 @@ class TaskManager { scoped_refptr<TaskManagerModel> model_; // A container containing the buttons and table. - scoped_ptr<TaskManagerContents> contents_; + scoped_ptr<TaskManagerView> view_; DISALLOW_COPY_AND_ASSIGN(TaskManager); }; @@ -346,4 +346,14 @@ class TaskManagerModel : public URLRequestJobTracker::JobObserver, DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); }; +class TaskManagerView { + public: + virtual ~TaskManagerView() {} + + virtual void GetSelection(std::vector<int>* selection) = 0; + virtual void GetFocused(std::vector<int>* focused) = 0; + + virtual void OpenWindow() = 0; +}; + #endif // CHROME_BROWSER_TASK_MANAGER_H_ |