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

Side by Side Diff: chrome/browser/task_manager.cc

Issue 28170: More URL constants replacement. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/tab_contents/site_instance.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/task_manager.h" 5 #include "chrome/browser/task_manager.h"
6 6
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 #include "base/stats_table.h" 8 #include "base/stats_table.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/thread.h" 10 #include "base/thread.h"
11 #include "chrome/browser/browser_list.h" 11 #include "chrome/browser/browser_list.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/renderer_host/render_process_host.h" 13 #include "chrome/browser/renderer_host/render_process_host.h"
14 #include "chrome/browser/task_manager_resource_providers.h" 14 #include "chrome/browser/task_manager_resource_providers.h"
15 #include "chrome/browser/tab_contents/tab_util.h" 15 #include "chrome/browser/tab_contents/tab_util.h"
16 #include "chrome/browser/views/standard_layout.h" 16 #include "chrome/browser/views/standard_layout.h"
17 #include "chrome/common/l10n_util.h" 17 #include "chrome/common/l10n_util.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chrome/common/pref_service.h" 19 #include "chrome/common/pref_service.h"
20 #include "chrome/common/resource_bundle.h" 20 #include "chrome/common/resource_bundle.h"
21 #include "chrome/common/url_constants.h"
21 #include "chrome/views/accelerator.h" 22 #include "chrome/views/accelerator.h"
22 #include "chrome/views/background.h" 23 #include "chrome/views/background.h"
23 #include "chrome/views/link.h" 24 #include "chrome/views/link.h"
24 #include "chrome/views/menu.h" 25 #include "chrome/views/menu.h"
25 #include "chrome/views/native_button.h" 26 #include "chrome/views/native_button.h"
26 #include "chrome/views/window.h" 27 #include "chrome/views/window.h"
27 #include "grit/chromium_strings.h" 28 #include "grit/chromium_strings.h"
28 #include "grit/generated_resources.h" 29 #include "grit/generated_resources.h"
29 #include "grit/theme_resources.h" 30 #include "grit/theme_resources.h"
30 #include "net/url_request/url_request.h" 31 #include "net/url_request/url_request.h"
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 if (virtual_keycode == VK_RETURN) 913 if (virtual_keycode == VK_RETURN)
913 task_manager_->ActivateFocusedTab(); 914 task_manager_->ActivateFocusedTab();
914 } 915 }
915 916
916 // views::LinkController implementation 917 // views::LinkController implementation
917 void TaskManagerContents::LinkActivated(views::Link* source, 918 void TaskManagerContents::LinkActivated(views::Link* source,
918 int event_flags) { 919 int event_flags) {
919 DCHECK(source == about_memory_link_); 920 DCHECK(source == about_memory_link_);
920 Browser* browser = BrowserList::GetLastActive(); 921 Browser* browser = BrowserList::GetLastActive();
921 DCHECK(browser); 922 DCHECK(browser);
922 browser->OpenURL(GURL("about:memory"), GURL(), NEW_FOREGROUND_TAB, 923 browser->OpenURL(GURL(chrome::kAboutMemoryURL), GURL(), NEW_FOREGROUND_TAB,
923 PageTransition::LINK); 924 PageTransition::LINK);
924 } 925 }
925 926
926 void TaskManagerContents::ShowContextMenu(views::View* source, 927 void TaskManagerContents::ShowContextMenu(views::View* source,
927 int x, 928 int x,
928 int y, 929 int y,
929 bool is_mouse_gesture) { 930 bool is_mouse_gesture) {
930 UpdateStatsCounters(); 931 UpdateStatsCounters();
931 Menu menu(this, Menu::TOPLEFT, source->GetWidget()->GetHWND()); 932 Menu menu(this, Menu::TOPLEFT, source->GetWidget()->GetHWND());
932 for (std::vector<views::TableColumn>::iterator i = 933 for (std::vector<views::TableColumn>::iterator i =
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1092
1092 views::View* TaskManager::GetContentsView() { 1093 views::View* TaskManager::GetContentsView() {
1093 return contents_.get(); 1094 return contents_.get();
1094 } 1095 }
1095 1096
1096 // static 1097 // static
1097 TaskManager* TaskManager::GetInstance() { 1098 TaskManager* TaskManager::GetInstance() {
1098 return Singleton<TaskManager>::get(); 1099 return Singleton<TaskManager>::get();
1099 } 1100 }
1100 1101
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/site_instance.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698