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

Side by Side Diff: chrome/browser/ui/browser_dialogs.h

Issue 2795133002: Chrome Cleaner UI: Add a dialog class for the new UI (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/srt_prompt_dialog.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 namespace net { 48 namespace net {
49 class AuthChallengeInfo; 49 class AuthChallengeInfo;
50 class URLRequest; 50 class URLRequest;
51 } 51 }
52 52
53 namespace payments { 53 namespace payments {
54 class PaymentRequest; 54 class PaymentRequest;
55 class PaymentRequestDialog; 55 class PaymentRequestDialog;
56 } 56 }
57 57
58 namespace safe_browsing {
59 class SRTPromptController;
60 }
61
58 namespace security_state { 62 namespace security_state {
59 struct SecurityInfo; 63 struct SecurityInfo;
60 } // namespace security_state 64 } // namespace security_state
61 65
62 namespace task_manager { 66 namespace task_manager {
63 class TaskManagerTableModel; 67 class TaskManagerTableModel;
64 } 68 }
65 69
66 namespace ui { 70 namespace ui {
67 class WebDialogDelegate; 71 class WebDialogDelegate;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 186
183 // Values used in the Dialog.Creation UMA metric. Each value represents a 187 // Values used in the Dialog.Creation UMA metric. Each value represents a
184 // different type of dialog box. 188 // different type of dialog box.
185 // These values are written to logs. New enum values can be added, but existing 189 // These values are written to logs. New enum values can be added, but existing
186 // enums must never be renumbered or deleted and reused. 190 // enums must never be renumbered or deleted and reused.
187 enum class DialogIdentifier { UNKNOWN = 0, TRANSLATE = 1, MAX_VALUE }; 191 enum class DialogIdentifier { UNKNOWN = 0, TRANSLATE = 1, MAX_VALUE };
188 192
189 // Record an UMA metric counting the creation of a dialog box of this type. 193 // Record an UMA metric counting the creation of a dialog box of this type.
190 void RecordDialogCreation(DialogIdentifier identifier); 194 void RecordDialogCreation(DialogIdentifier identifier);
191 195
196 #if defined(OS_WIN)
197
198 // Shows the Chrome Cleanup dialog asking the user if they want to clean their
199 // system from unwanted software. This is called when unwanted software has been
200 // detected on the system.
201 void ShowSRTPrompt(Browser* browser,
202 safe_browsing::SRTPromptController* controller);
203
204 #endif // OS_WIN
205
192 } // namespace chrome 206 } // namespace chrome
193 207
194 #if defined(OS_CHROMEOS) 208 #if defined(OS_CHROMEOS)
195 209
196 // This callback informs the package name of the app selected by the user, along 210 // This callback informs the package name of the app selected by the user, along
197 // with the reason why the Bubble was closed. The string param must have a valid 211 // with the reason why the Bubble was closed. The string param must have a valid
198 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for 212 // package name, except when the CloseReason is ERROR or DIALOG_DEACTIVATED, for
199 // these cases we return a dummy value which won't be used at all and has no 213 // these cases we return a dummy value which won't be used at all and has no
200 // significance. 214 // significance.
201 using IntentPickerResponse = 215 using IntentPickerResponse =
202 base::Callback<void(const std::string&, 216 base::Callback<void(const std::string&,
203 arc::ArcNavigationThrottle::CloseReason)>; 217 arc::ArcNavigationThrottle::CloseReason)>;
204 218
205 // Return a pointer to the IntentPickerBubbleView::ShowBubble method. 219 // Return a pointer to the IntentPickerBubbleView::ShowBubble method.
206 using BubbleShowPtr = 220 using BubbleShowPtr =
207 void (*)(content::WebContents*, 221 void (*)(content::WebContents*,
208 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, 222 const std::vector<arc::ArcNavigationThrottle::AppInfo>&,
209 const IntentPickerResponse&); 223 const IntentPickerResponse&);
210 224
211 BubbleShowPtr ShowIntentPickerBubble(); 225 BubbleShowPtr ShowIntentPickerBubble();
212 226
213 #endif // OS_CHROMEOS 227 #endif // OS_CHROMEOS
214 228
215 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 229 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/srt_prompt_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698