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

Unified Diff: chrome/browser/task_manager.h

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 | « no previous file | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager.h
===================================================================
--- chrome/browser/task_manager.h (revision 16479)
+++ chrome/browser/task_manager.h (working copy)
@@ -95,8 +95,8 @@
// moved to the front.
static void Open();
- // Close the task manager.
- void Close();
+ // Close the task manager if it's currently opened.
+ static void Close();
// Do the cleanup that can't be done during singleton destruction by
// AtExitManager. Does nothing if the TaskManager hasn't been initialized.
@@ -122,6 +122,8 @@
void AddResource(Resource* resource);
void RemoveResource(Resource* resource);
+ void OnWindowClosed();
+
private:
FRIEND_TEST(TaskManagerTest, Basic);
FRIEND_TEST(TaskManagerTest, Resources);
@@ -361,6 +363,7 @@
virtual void GetFocused(std::vector<int>* focused) = 0;
virtual void OpenWindow() = 0;
+ virtual void CloseWindow() = 0;
};
#endif // CHROME_BROWSER_TASK_MANAGER_H_
« no previous file with comments | « no previous file | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698