| OLD | NEW |
| 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/chrome_extension_chooser_dialog.h" | 8 #include "chrome/browser/extensions/chrome_extension_chooser_dialog.h" |
| 9 #include "chrome/browser/extensions/extension_install_prompt.h" | 9 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 10 #include "chrome/browser/ui/login/login_handler.h" | 10 #include "chrome/browser/ui/login/login_handler.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // static | 35 // static |
| 36 ExtensionInstallPrompt::ShowDialogCallback | 36 ExtensionInstallPrompt::ShowDialogCallback |
| 37 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { | 37 ExtensionInstallPrompt::GetDefaultShowDialogCallback() { |
| 38 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); | 38 return ExtensionInstallPrompt::GetViewsShowDialogCallback(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void ChromeDevicePermissionsPrompt::ShowDialog() { | 41 void ChromeDevicePermissionsPrompt::ShowDialog() { |
| 42 ShowDialogViews(); | 42 ShowDialogViews(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 // TODO(juncai): Move this to the toolkit-views implementation file of this | |
| 46 // dialog when it is implemented. | |
| 47 void ChromeExtensionChooserDialog::ShowDialog( | 45 void ChromeExtensionChooserDialog::ShowDialog( |
| 48 ChooserController* chooser_controller) const { | 46 ChooserController* chooser_controller) const { |
| 49 ShowDialogImpl(chooser_controller); | 47 ShowDialogImpl(chooser_controller); |
| 50 } | 48 } |
| 51 | 49 |
| 52 namespace chrome { | 50 namespace chrome { |
| 53 | 51 |
| 54 ui::TableModel* ShowTaskManager(Browser* browser) { | 52 ui::TableModel* ShowTaskManager(Browser* browser) { |
| 55 return task_management::NewTaskManagerView::Show(browser); | 53 return task_management::NewTaskManagerView::Show(browser); |
| 56 } | 54 } |
| 57 | 55 |
| 58 void HideTaskManager() { | 56 void HideTaskManager() { |
| 59 task_management::NewTaskManagerView::Hide(); | 57 task_management::NewTaskManagerView::Hide(); |
| 60 } | 58 } |
| 61 | 59 |
| 62 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request, | 60 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request, |
| 63 int64_t bytes_read) { | 61 int64_t bytes_read) { |
| 64 return false; | 62 return false; |
| 65 } | 63 } |
| 66 | 64 |
| 67 } // namespace chrome | 65 } // namespace chrome |
| OLD | NEW |