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

Side by Side Diff: chrome/browser/ui/javascript_dialogs/javascript_dialog.h

Issue 2450173003: Add a Cocoa version of the auto-dismissing dialog. (Closed)
Patch Set: rsesek Created 4 years, 1 month 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/javascript_dialogs/javascript_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
6 #define CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/javascript_dialog_manager.h"
10
11 class JavaScriptDialog {
12 public:
13 virtual ~JavaScriptDialog();
14
15 static base::WeakPtr<JavaScriptDialog> Create(
16 content::WebContents* parent_web_contents,
17 content::WebContents* alerting_web_contents,
18 const base::string16& title,
19 content::JavaScriptMessageType message_type,
20 const base::string16& message_text,
21 const base::string16& default_prompt_text,
22 const content::JavaScriptDialogManager::DialogClosedCallback&
23 dialog_callback);
24
25 // Closes the dialog without sending a callback. This is useful when the
26 // JavaScriptDialogTabHelper needs to make this dialog go away so that it can
27 // respond to a call that requires it to make no callback or make a customized
28 // one.
29 virtual void CloseDialogWithoutCallback() = 0;
30 };
31
32 #endif // CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/javascript_dialogs/javascript_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698