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

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

Issue 1924683003: [making a diff] Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete disabled tests Created 4 years, 7 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/ui/login/login_handler.h" 7 #include "chrome/browser/ui/login/login_handler.h"
8 #include "chrome/browser/ui/views/new_task_manager_view.h"
8 9
9 // This file provides definitions of desktop browser dialog-creation methods for 10 // This file provides definitions of desktop browser dialog-creation methods for
10 // all toolkit-views platforms other than Mac. It also provides the definitions 11 // all toolkit-views platforms other than Mac. It also provides the definitions
11 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is 12 // on Mac when mac_views_browser=1 is specified in GYP_DEFINES. The file is
12 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may 13 // excluded in a Mac Cocoa build: definitions under chrome/browser/ui/cocoa may
13 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog 14 // select at runtime whether to show a Cocoa dialog, or the toolkit-views dialog
14 // provided by browser_dialogs.h. 15 // provided by browser_dialogs.h.
15 16
16 // static 17 // static
17 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 18 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
18 net::URLRequest* request) { 19 net::URLRequest* request) {
19 return chrome::CreateLoginHandlerViews(auth_info, request); 20 return chrome::CreateLoginHandlerViews(auth_info, request);
20 } 21 }
21 22
22 // static 23 // static
23 void BookmarkEditor::Show(gfx::NativeWindow parent_window, 24 void BookmarkEditor::Show(gfx::NativeWindow parent_window,
24 Profile* profile, 25 Profile* profile,
25 const EditDetails& details, 26 const EditDetails& details,
26 Configuration configuration) { 27 Configuration configuration) {
27 chrome::ShowBookmarkEditorViews(parent_window, profile, details, 28 chrome::ShowBookmarkEditorViews(parent_window, profile, details,
28 configuration); 29 configuration);
29 } 30 }
31
32 namespace chrome {
33
34 void ShowTaskManager(Browser* browser) {
35 task_management::NewTaskManagerView::Show(browser);
36 }
37
38 void HideTaskManager() {
39 task_management::NewTaskManagerView::Hide();
40 }
41
42 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request,
43 int64_t bytes_read) {
44 return false;
45 }
46
47 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698