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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 6312178: Highlight background pages in task manager if user clicks View Background Pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Review feedback Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/test_browser_window.h » ('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) 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/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 } 1066 }
1067 1067
1068 void BrowserView::ShowUpdateChromeDialog() { 1068 void BrowserView::ShowUpdateChromeDialog() {
1069 UpdateRecommendedMessageBox::ShowMessageBox(GetWindow()->GetNativeWindow()); 1069 UpdateRecommendedMessageBox::ShowMessageBox(GetWindow()->GetNativeWindow());
1070 } 1070 }
1071 1071
1072 void BrowserView::ShowTaskManager() { 1072 void BrowserView::ShowTaskManager() {
1073 browser::ShowTaskManager(); 1073 browser::ShowTaskManager();
1074 } 1074 }
1075 1075
1076 void BrowserView::ShowBackgroundPages() {
1077 // TODO(atwilson): Support highlighting background resources.
1078 // (http://crbug.com/71490)
1079 browser::ShowTaskManager();
1080 }
1081
1076 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { 1082 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {
1077 toolbar_->location_bar()->ShowStarBubble(url, !already_bookmarked); 1083 toolbar_->location_bar()->ShowStarBubble(url, !already_bookmarked);
1078 } 1084 }
1079 1085
1080 void BrowserView::SetDownloadShelfVisible(bool visible) { 1086 void BrowserView::SetDownloadShelfVisible(bool visible) {
1081 // This can be called from the superclass destructor, when it destroys our 1087 // This can be called from the superclass destructor, when it destroys our
1082 // child views. At that point, browser_ is already gone. 1088 // child views. At that point, browser_ is already gone.
1083 if (browser_ == NULL) 1089 if (browser_ == NULL)
1084 return; 1090 return;
1085 1091
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 2571 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
2566 2572
2567 return view; 2573 return view;
2568 } 2574 }
2569 #endif 2575 #endif
2570 2576
2571 // static 2577 // static
2572 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { 2578 FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
2573 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); 2579 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window()));
2574 } 2580 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/test/test_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698