[email protected] | c5e22aee5 | 2012-01-19 16:10:51 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | c96531e8 | 2011-01-26 03:11:14 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | ||||
6 | #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | ||||
[email protected] | c96531e8 | 2011-01-26 03:11:14 | [diff] [blame] | 7 | |
David Benjamin | 78fe596 | 2019-01-29 22:22:38 | [diff] [blame] | 8 | #include <memory> |
djacobo | 21e56e0 | 2016-07-02 01:14:31 | [diff] [blame] | 9 | #include <string> |
10 | #include <utility> | ||||
11 | #include <vector> | ||||
12 | |||||
[email protected] | 6684dc816 | 2013-06-03 14:05:08 | [diff] [blame] | 13 | #include "base/callback.h" |
constantina | e4c513e7 | 2017-02-07 02:14:10 | [diff] [blame] | 14 | #include "base/optional.h" |
15 | #include "base/strings/string16.h" | ||||
avi | 655876a | 2015-12-25 07:18:15 | [diff] [blame] | 16 | #include "build/build_config.h" |
jackhou | b42a1f3d | 2015-08-24 05:53:28 | [diff] [blame] | 17 | #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
Mark Pilgrim | 7cfcd11 | 2018-05-08 00:07:56 | [diff] [blame] | 18 | #include "content/public/browser/content_browser_client.h" |
Jun Cai | bc561f41 | 2018-02-28 18:41:39 | [diff] [blame] | 19 | #include "content/public/browser/resource_request_info.h" |
[email protected] | cb80545 | 2013-05-22 15:16:21 | [diff] [blame] | 20 | #include "third_party/skia/include/core/SkColor.h" |
[email protected] | 08397d5 | 2011-02-05 01:53:38 | [diff] [blame] | 21 | #include "ui/gfx/native_widget_types.h" |
[email protected] | c96531e8 | 2011-01-26 03:11:14 | [diff] [blame] | 22 | |
[email protected] | c60e248 | 2011-02-11 23:46:32 | [diff] [blame] | 23 | class Browser; |
tapted | 081286e | 2015-08-10 06:36:30 | [diff] [blame] | 24 | class LoginHandler; |
[email protected] | 6684dc816 | 2013-06-03 14:05:08 | [diff] [blame] | 25 | class Profile; |
Giovanni Ortuño Urquidi | 97f8bd52 | 2017-06-16 04:04:37 | [diff] [blame] | 26 | class WebShareTarget; |
tapted | 712c1b8 | 2017-06-08 03:10:05 | [diff] [blame] | 27 | struct WebApplicationInfo; |
[email protected] | eb2d790 | 2011-02-02 18:19:56 | [diff] [blame] | 28 | |
Peter Boström | 2a02a69 | 2018-02-22 22:25:46 | [diff] [blame] | 29 | namespace base { |
30 | class FilePath; | ||||
31 | } | ||||
32 | |||||
[email protected] | 2a6bc3e | 2011-12-28 23:51:33 | [diff] [blame] | 33 | namespace content { |
[email protected] | 6ae4f14 | 2012-06-13 19:48:20 | [diff] [blame] | 34 | class BrowserContext; |
[email protected] | 2a6bc3e | 2011-12-28 23:51:33 | [diff] [blame] | 35 | class WebContents; |
Josh Pratt | f80ffb8 | 2019-01-22 07:13:51 | [diff] [blame] | 36 | } // namespace content |
[email protected] | 2a6bc3e | 2011-12-28 23:51:33 | [diff] [blame] | 37 | |
[email protected] | 1c321ee | 2012-05-21 03:02:34 | [diff] [blame] | 38 | namespace extensions { |
39 | class Extension; | ||||
40 | } | ||||
41 | |||||
tapted | 081286e | 2015-08-10 06:36:30 | [diff] [blame] | 42 | namespace net { |
43 | class AuthChallengeInfo; | ||||
tapted | 081286e | 2015-08-10 06:36:30 | [diff] [blame] | 44 | } |
45 | |||||
anthonyvd | 3d7f972 | 2016-12-07 18:43:54 | [diff] [blame] | 46 | namespace payments { |
mathp | f709499d | 2017-01-09 20:48:36 | [diff] [blame] | 47 | class PaymentRequest; |
mathp | f4bc50e | 2017-01-24 05:17:50 | [diff] [blame] | 48 | class PaymentRequestDialog; |
Josh Pratt | f80ffb8 | 2019-01-22 07:13:51 | [diff] [blame] | 49 | } // namespace payments |
anthonyvd | 3d7f972 | 2016-12-07 18:43:54 | [diff] [blame] | 50 | |
alito | e82b14b | 2017-04-06 23:11:29 | [diff] [blame] | 51 | namespace safe_browsing { |
Ali Tofigh | f5baba98 | 2017-07-21 23:15:23 | [diff] [blame] | 52 | class ChromeCleanerController; |
alito | f8f753f6 | 2017-04-28 23:04:10 | [diff] [blame] | 53 | class ChromeCleanerDialogController; |
Fabio Tirelo | 8825aab4 | 2017-10-19 13:23:31 | [diff] [blame] | 54 | class ChromeCleanerRebootDialogController; |
Ali Tofigh | 525f78bdd | 2017-09-15 15:37:20 | [diff] [blame] | 55 | class SettingsResetPromptController; |
Josh Pratt | f80ffb8 | 2019-01-22 07:13:51 | [diff] [blame] | 56 | } // namespace safe_browsing |
alito | e82b14b | 2017-04-06 23:11:29 | [diff] [blame] | 57 | |
avi | 24d693f | 2016-08-06 18:03:52 | [diff] [blame] | 58 | namespace task_manager { |
nick | bb57d2ca | 2016-07-25 23:08:04 | [diff] [blame] | 59 | class TaskManagerTableModel; |
60 | } | ||||
61 | |||||
[email protected] | 20c07f8e | 2012-05-31 08:43:14 | [diff] [blame] | 62 | namespace ui { |
63 | class WebDialogDelegate; | ||||
Peter Boström | 2a02a69 | 2018-02-22 22:25:46 | [diff] [blame] | 64 | struct SelectedFileInfo; |
Josh Pratt | f80ffb8 | 2019-01-22 07:13:51 | [diff] [blame] | 65 | } // namespace ui |
[email protected] | 20c07f8e | 2012-05-31 08:43:14 | [diff] [blame] | 66 | |
[email protected] | 87586fb7 | 2012-07-02 13:15:02 | [diff] [blame] | 67 | namespace chrome { |
[email protected] | c96531e8 | 2011-01-26 03:11:14 | [diff] [blame] | 68 | |
tapted | e0eec37 | 2016-01-28 02:45:33 | [diff] [blame] | 69 | // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. |
nick | 399f1066 | 2016-05-06 16:20:26 | [diff] [blame] | 70 | // Returns a pointer to the underlying TableModel, which can be ignored, or used |
71 | // for testing. | ||||
avi | 24d693f | 2016-08-06 18:03:52 | [diff] [blame] | 72 | task_manager::TaskManagerTableModel* ShowTaskManager(Browser* browser); |
tapted | e0eec37 | 2016-01-28 02:45:33 | [diff] [blame] | 73 | void HideTaskManager(); |
74 | |||||
75 | #if !defined(OS_MACOSX) | ||||
[email protected] | d7db4cd | 2012-06-27 04:58:44 | [diff] [blame] | 76 | // Creates and shows an HTML dialog with the given delegate and context. |
77 | // The window is automatically destroyed when it is closed. | ||||
[email protected] | eb2d790 | 2011-02-02 18:19:56 | [diff] [blame] | 78 | // Returns the created window. |
79 | // | ||||
80 | // Make sure to use the returned window only when you know it is safe | ||||
81 | // to do so, i.e. before OnDialogClosed() is called on the delegate. | ||||
andresantoso |