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

Side by Side Diff: chrome/browser/ui/cocoa/task_manager_mac.mm

Issue 1700873002: Remove HostDesktopType from task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-25
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/cocoa/task_manager_mac.h" 5 #include "chrome/browser/ui/cocoa/task_manager_mac.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 NSMutableIndexSet* indexSet = [NSMutableIndexSet indexSet]; 170 NSMutableIndexSet* indexSet = [NSMutableIndexSet indexSet];
171 for (size_t i = 0; i < modelSelection.size(); ++i) 171 for (size_t i = 0; i < modelSelection.size(); ++i)
172 [indexSet addIndex:modelToViewMap_[modelSelection[i]]]; 172 [indexSet addIndex:modelToViewMap_[modelSelection[i]]];
173 [tableView_ selectRowIndexes:indexSet byExtendingSelection:NO]; 173 [tableView_ selectRowIndexes:indexSet byExtendingSelection:NO];
174 174
175 [tableView_ reloadData]; 175 [tableView_ reloadData];
176 [self adjustSelectionAndEndProcessButton]; 176 [self adjustSelectionAndEndProcessButton];
177 } 177 }
178 178
179 - (IBAction)statsLinkClicked:(id)sender { 179 - (IBAction)statsLinkClicked:(id)sender {
180 TaskManager::GetInstance()->OpenAboutMemory(chrome::HOST_DESKTOP_TYPE_NATIVE); 180 TaskManager::GetInstance()->OpenAboutMemory();
181 } 181 }
182 182
183 - (IBAction)killSelectedProcesses:(id)sender { 183 - (IBAction)killSelectedProcesses:(id)sender {
184 NSIndexSet* selection = [tableView_ selectedRowIndexes]; 184 NSIndexSet* selection = [tableView_ selectedRowIndexes];
185 for (NSUInteger i = [selection lastIndex]; 185 for (NSUInteger i = [selection lastIndex];
186 i != NSNotFound; 186 i != NSNotFound;
187 i = [selection indexLessThanIndex:i]) { 187 i = [selection indexLessThanIndex:i]) {
188 taskManager_->KillProcess(viewToModelMap_[i]); 188 taskManager_->KillProcess(viewToModelMap_[i]);
189 } 189 }
190 } 190 }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 void ShowTaskManager(Browser* browser) { 600 void ShowTaskManager(Browser* browser) {
601 TaskManagerMac::Show(); 601 TaskManagerMac::Show();
602 } 602 }
603 603
604 void HideTaskManager() { 604 void HideTaskManager() {
605 TaskManagerMac::Hide(); 605 TaskManagerMac::Hide();
606 } 606 }
607 607
608 } // namespace chrome 608 } // namespace chrome
609 609
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/ui/views/new_task_manager_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698