diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 19:55:14 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 19:55:14 +0000 |
commit | 8f0d1a2b4004082e5e46009d4446a59dff805928 (patch) | |
tree | aabb0e55875425a5187eb8e724aa4b4a17ebe6c9 /chrome/browser/cocoa/task_manager_mac.mm | |
parent | ed764d167c3f9653b9eec17ecc2042ea3c0a6611 (diff) | |
download | chromium_src-8f0d1a2b4004082e5e46009d4446a59dff805928.zip chromium_src-8f0d1a2b4004082e5e46009d4446a59dff805928.tar.gz chromium_src-8f0d1a2b4004082e5e46009d4446a59dff805928.tar.bz2 |
Add about:memory link to task manager.
Since about:memory DCHECK()s atm, the link is not completely hooked up.
In the xib, I've added a square button with height 14 and the new HyperlinkCell, contained in a GTMWidthBasedResizer or how it's called. I made sure the baseline of link on the left and button on the right is at the same height.
BUG=17989,13156
TEST=Open MainMenu.xib, click "Enable" for view->dev->taskman. Build&run chrome. Task manager should contain link.
Review URL: http://codereview.chromium.org/255018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/task_manager_mac.mm')
-rw-r--r-- | chrome/browser/cocoa/task_manager_mac.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/task_manager_mac.mm b/chrome/browser/cocoa/task_manager_mac.mm index a35128c..e5b1a04 100644 --- a/chrome/browser/cocoa/task_manager_mac.mm +++ b/chrome/browser/cocoa/task_manager_mac.mm @@ -13,7 +13,6 @@ #include "grit/generated_resources.h" // TODO(thakis): Autoremember window size/pos (and selected columns?) -// TODO(thakis): Link that opens about:memory // TODO(thakis): Activate button iff something is selected, hook it up // TODO(thakis): Column sort comparator // TODO(thakis): Clicking column header doesn't sort @@ -50,6 +49,10 @@ [tableView_ reloadData]; } +- (IBAction)statsLinkClicked:(id)sender { + TaskManager::GetInstance()->OpenAboutMemory(); +} + - (void)awakeFromNib { [self setUpTableColumns]; [self setUpTableHeaderContextMenu]; |