Update AtomJavaScriptDialogManager
This commit is contained in:
parent
6eaa30e94c
commit
85749e4dbd
2 changed files with 9 additions and 3 deletions
|
@ -58,6 +58,12 @@ void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
|
||||||
callback.Run(false, base::ASCIIToUTF16("This should not be displayed"));
|
callback.Run(false, base::ASCIIToUTF16("This should not be displayed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AtomJavaScriptDialogManager::CancelDialogs(
|
||||||
|
content::WebContents* web_contents,
|
||||||
|
bool suppress_callbacks,
|
||||||
|
bool reset_state) {
|
||||||
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
void AtomJavaScriptDialogManager::OnMessageBoxCallback(
|
void AtomJavaScriptDialogManager::OnMessageBoxCallback(
|
||||||
const DialogClosedCallback& callback, int code) {
|
const DialogClosedCallback& callback, int code) {
|
||||||
|
|
|
@ -26,9 +26,9 @@ class AtomJavaScriptDialogManager : public content::JavaScriptDialogManager {
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
bool is_reload,
|
bool is_reload,
|
||||||
const DialogClosedCallback& callback) override;
|
const DialogClosedCallback& callback) override;
|
||||||
void CancelActiveAndPendingDialogs(
|
void CancelDialogs(content::WebContents* web_contents,
|
||||||
content::WebContents* web_contents) override {}
|
bool suppress_callbacks,
|
||||||
void ResetDialogState(content::WebContents* web_contents) override {};
|
bool reset_state) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void OnMessageBoxCallback(const DialogClosedCallback& callback,
|
static void OnMessageBoxCallback(const DialogClosedCallback& callback,
|
||||||
|
|
Loading…
Reference in a new issue