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

Side by Side Diff: chrome/browser/ui/webui/task_manager_ui.cc

Issue 7326044: WebUI TaskManager: Column Customization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/task_manager/main.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/webui/task_manager_ui.h" 5 #include "chrome/browser/ui/webui/task_manager_ui.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/task_manager/task_manager.h" 9 #include "chrome/browser/task_manager/task_manager.h"
10 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 10 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 int request_id) { 55 int request_id) {
56 DictionaryValue localized_strings; 56 DictionaryValue localized_strings;
57 localized_strings.SetString("title", 57 localized_strings.SetString("title",
58 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_TITLE)); 58 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_TITLE));
59 localized_strings.SetString("about_memory_link", 59 localized_strings.SetString("about_memory_link",
60 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK)); 60 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_ABOUT_MEMORY_LINK));
61 localized_strings.SetString("close_window", 61 localized_strings.SetString("close_window",
62 l10n_util::GetStringUTF16(IDS_CLOSE)); 62 l10n_util::GetStringUTF16(IDS_CLOSE));
63 localized_strings.SetString("kill_process", 63 localized_strings.SetString("kill_process",
64 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_KILL)); 64 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_KILL));
65 localized_strings.SetString("process_id_column",
66 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PROCESS_ID_COLUMN));
65 localized_strings.SetString("page_column", 67 localized_strings.SetString("page_column",
66 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PAGE_COLUMN)); 68 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PAGE_COLUMN));
67 localized_strings.SetString("network_column", 69 localized_strings.SetString("network_column",
68 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NET_COLUMN)); 70 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NET_COLUMN));
69 localized_strings.SetString("cpu_column", 71 localized_strings.SetString("cpu_column",
70 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_CPU_COLUMN)); 72 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_CPU_COLUMN));
71 localized_strings.SetString("private_memory_column", 73 localized_strings.SetString("private_memory_column",
72 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PRIVATE_MEM_COLUMN)); 74 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_PRIVATE_MEM_COLUMN));
73 75
74 SetFontAndTextDirection(&localized_strings); 76 SetFontAndTextDirection(&localized_strings);
(...skipping 26 matching lines...) Expand all
101 handler->Attach(this); 103 handler->Attach(this);
102 handler->Init(); 104 handler->Init();
103 AddMessageHandler(handler); 105 AddMessageHandler(handler);
104 106
105 TaskManagerUIHTMLSource* html_source = new TaskManagerUIHTMLSource(); 107 TaskManagerUIHTMLSource* html_source = new TaskManagerUIHTMLSource();
106 108
107 // Set up the chrome://taskmanager/ source. 109 // Set up the chrome://taskmanager/ source.
108 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); 110 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
109 } 111 }
110 112
OLDNEW
« no previous file with comments | « chrome/browser/resources/task_manager/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698