| 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 28 matching lines...) Expand all Loading... |
| 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 | 45 // TODO(juncai): Move this to the toolkit-views implementation file of this |
| 46 // dialog when it is implemented. | 46 // dialog when it is implemented. |
| 47 void ChromeExtensionChooserDialog::ShowDialog( | 47 void ChromeExtensionChooserDialog::ShowDialog( |
| 48 ChooserController* chooser_controller) const { | 48 ChooserController* chooser_controller) const { |
| 49 ShowDialogImpl(chooser_controller); |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace chrome { | 52 namespace chrome { |
| 52 | 53 |
| 53 ui::TableModel* ShowTaskManager(Browser* browser) { | 54 ui::TableModel* ShowTaskManager(Browser* browser) { |
| 54 return task_management::NewTaskManagerView::Show(browser); | 55 return task_management::NewTaskManagerView::Show(browser); |
| 55 } | 56 } |
| 56 | 57 |
| 57 void HideTaskManager() { | 58 void HideTaskManager() { |
| 58 task_management::NewTaskManagerView::Hide(); | 59 task_management::NewTaskManagerView::Hide(); |
| 59 } | 60 } |
| 60 | 61 |
| 61 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request, | 62 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request, |
| 62 int64_t bytes_read) { | 63 int64_t bytes_read) { |
| 63 return false; | 64 return false; |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace chrome | 67 } // namespace chrome |
| OLD | NEW |