OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/optional.h" | 13 #include "base/optional.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 16 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
17 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" |
18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
19 | 19 |
20 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
21 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" | 21 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" |
22 #endif // OS_CHROMEOS | 22 #endif // OS_CHROMEOS |
23 | 23 |
24 class Browser; | 24 class Browser; |
25 class LoginHandler; | 25 class LoginHandler; |
26 class Profile; | 26 class Profile; |
27 class SigninManager; | |
27 class WebShareTarget; | 28 class WebShareTarget; |
28 struct WebApplicationInfo; | 29 struct WebApplicationInfo; |
29 | 30 |
31 namespace base { | |
32 class TimeDelta; | |
33 } | |
34 | |
30 namespace content { | 35 namespace content { |
31 class BrowserContext; | 36 class BrowserContext; |
32 class ColorChooser; | 37 class ColorChooser; |
33 class WebContents; | 38 class WebContents; |
34 } | 39 } |
35 | 40 |
36 namespace extensions { | 41 namespace extensions { |
37 class Extension; | 42 class Extension; |
38 } | 43 } |
39 | 44 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 // Shows the dialog to choose a share target app. |targets| is a list of app | 157 // Shows the dialog to choose a share target app. |targets| is a list of app |
153 // title and manifest URL pairs that will be shown in a list. If the user picks | 158 // title and manifest URL pairs that will be shown in a list. If the user picks |
154 // a target, this calls |callback| with the manifest URL of the chosen target, | 159 // a target, this calls |callback| with the manifest URL of the chosen target, |
155 // or supplies null if the user cancelled the share. | 160 // or supplies null if the user cancelled the share. |
156 void ShowWebShareTargetPickerDialog(gfx::NativeWindow parent_window, | 161 void ShowWebShareTargetPickerDialog(gfx::NativeWindow parent_window, |
157 std::vector<WebShareTarget> targets, | 162 std::vector<WebShareTarget> targets, |
158 WebShareTargetPickerCallback callback); | 163 WebShareTargetPickerCallback callback); |
159 | 164 |
160 #endif // TOOLKIT_VIEWS | 165 #endif // TOOLKIT_VIEWS |
161 | 166 |
167 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | |
168 | |
169 // Show/Hide the ForcedReauthenticationDialog for |profile|. | |
sky
2017/06/22 03:28:14
Please document *all* paremeters.
zmin
2017/06/22 07:34:58
Done.
| |
170 void ShowForcedReauthenticationDialog( | |
sky
2017/06/22 03:28:14
Can this return an object that is used to delete/c
zmin
2017/06/22 07:34:58
Done.
| |
171 Profile* profile, | |
172 SigninManager* signin_manager, | |
173 const base::TimeDelta& countdown_duration); | |
sky
2017/06/22 03:28:14
We typically don't use a const ref for TimeDelta,
zmin
2017/06/22 07:34:57
Done.
| |
174 void HideForcedReauthenticationDialog(Profile* profile); | |
175 | |
176 #endif // TOOLKIT_VIEWS && !OS_MACOSX | |
177 | |
162 // Values used in the Dialog.Creation UMA metric. Each value represents a | 178 // Values used in the Dialog.Creation UMA metric. Each value represents a |
163 // different type of dialog box. | 179 // different type of dialog box. |
164 // These values are written to logs. New enum values can be added, but existing | 180 // These values are written to logs. New enum values can be added, but existing |
165 // enums must never be renumbered or deleted and reused. | 181 // enums must never be renumbered or deleted and reused. |
166 enum class DialogIdentifier { | 182 enum class DialogIdentifier { |
167 UNKNOWN = 0, | 183 UNKNOWN = 0, |
168 TRANSLATE = 1, | 184 TRANSLATE = 1, |
169 BOOKMARK = 2, | 185 BOOKMARK = 2, |
170 BOOKMARK_EDITOR = 3, | 186 BOOKMARK_EDITOR = 3, |
171 DESKTOP_MEDIA_PICKER = 4, | 187 DESKTOP_MEDIA_PICKER = 4, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 using BubbleShowPtr = | 294 using BubbleShowPtr = |
279 void (*)(content::WebContents*, | 295 void (*)(content::WebContents*, |
280 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 296 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
281 const IntentPickerResponse&); | 297 const IntentPickerResponse&); |
282 | 298 |
283 BubbleShowPtr ShowIntentPickerBubble(); | 299 BubbleShowPtr ShowIntentPickerBubble(); |
284 | 300 |
285 #endif // OS_CHROMEOS | 301 #endif // OS_CHROMEOS |
286 | 302 |
287 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 303 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |