Make the default alert() do nothing.
This commit is contained in:
parent
8404389a31
commit
4c8e483bc1
2 changed files with 13 additions and 1 deletions
|
@ -8,6 +8,18 @@
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
|
void AtomJavaScriptDialogManager::RunJavaScriptDialog(
|
||||||
|
content::WebContents* web_contents,
|
||||||
|
const GURL& origin_url,
|
||||||
|
const std::string& accept_lang,
|
||||||
|
content::JavaScriptMessageType javascript_message_type,
|
||||||
|
const string16& message_text,
|
||||||
|
const string16& default_prompt_text,
|
||||||
|
const DialogClosedCallback& callback,
|
||||||
|
bool* did_suppress_message) {
|
||||||
|
callback.Run(false, string16());
|
||||||
|
}
|
||||||
|
|
||||||
void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
|
void AtomJavaScriptDialogManager::RunBeforeUnloadDialog(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
const string16& message_text,
|
const string16& message_text,
|
||||||
|
|
|
@ -20,7 +20,7 @@ class AtomJavaScriptDialogManager : public content::JavaScriptDialogManager {
|
||||||
const string16& message_text,
|
const string16& message_text,
|
||||||
const string16& default_prompt_text,
|
const string16& default_prompt_text,
|
||||||
const DialogClosedCallback& callback,
|
const DialogClosedCallback& callback,
|
||||||
bool* did_suppress_message) OVERRIDE {}
|
bool* did_suppress_message) OVERRIDE;
|
||||||
virtual void RunBeforeUnloadDialog(
|
virtual void RunBeforeUnloadDialog(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
const string16& message_text,
|
const string16& message_text,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue