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

Side by Side Diff: chrome/browser/ui/views/browser_dialogs_views.cc

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser_dialogs.h" 5 #include "chrome/browser/ui/browser_dialogs.h"
6 6
7 #include "chrome/browser/extensions/api/chrome_device_permissions_prompt.h" 7 #include "chrome/browser/extensions/api/chrome_device_permissions_prompt.h"
8 #include "chrome/browser/extensions/extension_install_prompt.h" 8 #include "chrome/browser/extensions/extension_install_prompt.h"
9 #include "chrome/browser/ui/login/login_handler.h" 9 #include "chrome/browser/ui/login/login_handler.h"
10 #include "chrome/browser/ui/views/new_task_manager_view.h"
10 11
11 // This file provides definitions of desktop browser dialog-creation methods for 12 // This file provides definitions of desktop browser dialog-creation methods for
12 // all toolkit-views platforms other than Mac. It also provides the definitions 13 // all toolkit-views platforms other than Mac. It also provides the definitions
13 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is 14 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is
14 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may 15 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may
15 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog 16 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog
16 // provided by browser_dialogs.h. 17 // provided by browser_dialogs.h.
17 18
18 // static 19 // static
19 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 20 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
(...skipping 12 matching lines...) Expand all
32 33
33 // static 34 // static
34 ExtensionInstallPrompt::ShowDialogCallback 35 ExtensionInstallPrompt::ShowDialogCallback
35 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { 36 ExtensionInstallPrompt::GetDefaultShowDialogCallback() {
36 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); 37 return ExtensionInstallPrompt::GetViewsShowDialogCallback();
37 } 38 }
38 39
39 void ChromeDevicePermissionsPrompt::ShowDialog() { 40 void ChromeDevicePermissionsPrompt::ShowDialog() {
40 ShowDialogViews(); 41 ShowDialogViews();
41 } 42 }
43
44 namespace chrome {
45
46 ui::TableModel* ShowTaskManager(Browser* browser) {
47 return task_management::NewTaskManagerView::Show(browser);
48 }
49
50 void HideTaskManager() {
51 task_management::NewTaskManagerView::Hide();
52 }
53
54 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request,
55 int64_t bytes_read) {
56 return false;
57 }
58
59 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.cc ('k') | chrome/browser/ui/views/new_task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698