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

Unified Diff: chrome/browser/task_manager_win.cc

Issue 113636: Create OpenClose browser test for TaskManager with necessary refactoring.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/task_manager_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager_win.cc
===================================================================
--- chrome/browser/task_manager_win.cc (revision 16479)
+++ chrome/browser/task_manager_win.cc (working copy)
@@ -184,6 +184,7 @@
virtual void GetSelection(std::vector<int>* selection);
virtual void GetFocused(std::vector<int>* focused);
virtual void OpenWindow();
+ virtual void CloseWindow();
// ButtonListener implementation.
virtual void ButtonPressed(views::Button* sender);
@@ -434,6 +435,12 @@
}
}
+void TaskManagerViewImpl::CloseWindow() {
+ if (!window())
+ return;
+ window()->HideWindow();
+}
+
// ButtonListener implementation.
void TaskManagerViewImpl::ButtonPressed(views::Button* sender) {
if (sender == kill_button_.get())
@@ -498,7 +505,7 @@
// ViewHierarchyChanged notification to unhook the extra buttons from the
// non-client view.
GetParent()->RemoveChildView(this);
- task_manager_->Close();
+ task_manager_->OnWindowClosed();
}
void TaskManagerViewImpl::DeleteDelegate() {
« no previous file with comments | « chrome/browser/task_manager_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698