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

Unified Diff: chrome/browser/task_manager.h

Issue 1822: Task Manager Double Click (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 1811)
+++ chrome/browser/task_manager.h (working copy)
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_TASK_MANAGER_H__
#define CHROME_BROWSER_TASK_MANAGER_H__
+#include <map>
+#include <vector>
+
#include "base/lock.h"
#include "base/singleton.h"
#include "base/ref_counted.h"
@@ -12,6 +15,7 @@
#include "chrome/views/dialog_delegate.h"
#include "chrome/views/group_table_view.h"
#include "chrome/browser/cache_manager_host.h"
+#include "chrome/browser/tab_contents.h"
#include "net/url_request/url_request_job_tracker.h"
class MessageLoop;
@@ -42,10 +46,16 @@
// Resources from similar processes are grouped together by the task manager.
class Resource {
public:
+ virtual ~Resource() {}
+
virtual std::wstring GetTitle() const = 0;
virtual SkBitmap GetIcon() const = 0;
virtual HANDLE GetProcess() const = 0;
+ // A helper function for ActivateFocusedTab. Returns NULL by default
+ // because not all resources have an assoiciated tab.
+ virtual TabContents* GetTabContents() const {return NULL;}
+
// Whether this resource does report the network usage accurately.
// This controls whether 0 or N/A is displayed when no bytes have been
// reported as being read. This is because some plugins do not report the
@@ -99,6 +109,10 @@
// Terminates the selected tab(s) in the list.
void KillSelectedProcesses();
+ // Activates the browser tab associated with the focused row in the task
+ // manager table. This happens when the user double clicks or hits return.
+ void ActivateFocusedTab();
+
void AddResourceProvider(ResourceProvider* provider);
void RemoveResourceProvider(ResourceProvider* provider);
« 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