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

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

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
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 "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 if (virtual_keycode == VK_RETURN) 891 if (virtual_keycode == VK_RETURN)
892 task_manager_->ActivateFocusedTab(); 892 task_manager_->ActivateFocusedTab();
893 } 893 }
894 894
895 // views::LinkController implementation 895 // views::LinkController implementation
896 void TaskManagerContents::LinkActivated(views::Link* source, 896 void TaskManagerContents::LinkActivated(views::Link* source,
897 int event_flags) { 897 int event_flags) {
898 DCHECK(source == about_memory_link_); 898 DCHECK(source == about_memory_link_);
899 Browser* browser = BrowserList::GetLastActive(); 899 Browser* browser = BrowserList::GetLastActive();
900 DCHECK(browser); 900 DCHECK(browser);
901 browser->OpenURL(GURL("about:memory"), NEW_FOREGROUND_TAB, 901 browser->OpenURL(GURL("about:memory"), GURL(), NEW_FOREGROUND_TAB,
902 PageTransition::LINK); 902 PageTransition::LINK);
903 } 903 }
904 904
905 void TaskManagerContents::ShowContextMenu(views::View* source, 905 void TaskManagerContents::ShowContextMenu(views::View* source,
906 int x, 906 int x,
907 int y, 907 int y,
908 bool is_mouse_gesture) { 908 bool is_mouse_gesture) {
909 UpdateStatsCounters(); 909 UpdateStatsCounters();
910 Menu menu(this, Menu::TOPLEFT, source->GetContainer()->GetHWND()); 910 Menu menu(this, Menu::TOPLEFT, source->GetContainer()->GetHWND());
911 for (std::vector<views::TableColumn>::iterator i = 911 for (std::vector<views::TableColumn>::iterator i =
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 1087
1088 views::View* TaskManager::GetContentsView() { 1088 views::View* TaskManager::GetContentsView() {
1089 return contents_.get(); 1089 return contents_.get();
1090 } 1090 }
1091 1091
1092 // static 1092 // static
1093 TaskManager* TaskManager::GetInstance() { 1093 TaskManager* TaskManager::GetInstance() {
1094 return Singleton<TaskManager>::get(); 1094 return Singleton<TaskManager>::get();
1095 } 1095 }
1096 1096
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698