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

Side by Side Diff: components/app_modal/javascript_dialog_manager.h

Issue 1714573002: Remove the ability of webpages to specify strings for the onbeforeunload dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 9 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
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 COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ 5 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ 6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // JavaScriptDialogManager: 45 // JavaScriptDialogManager:
46 void RunJavaScriptDialog(content::WebContents* web_contents, 46 void RunJavaScriptDialog(content::WebContents* web_contents,
47 const GURL& origin_url, 47 const GURL& origin_url,
48 const std::string& accept_lang, 48 const std::string& accept_lang,
49 content::JavaScriptMessageType message_type, 49 content::JavaScriptMessageType message_type,
50 const base::string16& message_text, 50 const base::string16& message_text,
51 const base::string16& default_prompt_text, 51 const base::string16& default_prompt_text,
52 const DialogClosedCallback& callback, 52 const DialogClosedCallback& callback,
53 bool* did_suppress_message) override; 53 bool* did_suppress_message) override;
54 void RunBeforeUnloadDialog(content::WebContents* web_contents, 54 void RunBeforeUnloadDialog(content::WebContents* web_contents,
55 const base::string16& message_text,
56 bool is_reload, 55 bool is_reload,
57 const DialogClosedCallback& callback) override; 56 const DialogClosedCallback& callback) override;
58 bool HandleJavaScriptDialog(content::WebContents* web_contents, 57 bool HandleJavaScriptDialog(content::WebContents* web_contents,
59 bool accept, 58 bool accept,
60 const base::string16* prompt_override) override; 59 const base::string16* prompt_override) override;
61 void CancelActiveAndPendingDialogs( 60 void CancelActiveAndPendingDialogs(
62 content::WebContents* web_contents) override; 61 content::WebContents* web_contents) override;
63 void ResetDialogState(content::WebContents* web_contents) override; 62 void ResetDialogState(content::WebContents* web_contents) override;
64 63
65 base::string16 GetTitle(content::WebContents* web_contents, 64 base::string16 GetTitle(content::WebContents* web_contents,
(...skipping 25 matching lines...) Expand all
91 // dialogs. (Since Javascript dialogs are modal, this is even accurate!) 90 // dialogs. (Since Javascript dialogs are modal, this is even accurate!)
92 base::TimeTicks last_close_time_; 91 base::TimeTicks last_close_time_;
93 base::TimeTicks last_creation_time_; 92 base::TimeTicks last_creation_time_;
94 93
95 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManager); 94 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogManager);
96 }; 95 };
97 96
98 } // namespace app_modal 97 } // namespace app_modal
99 98
100 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_ 99 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm ('k') | components/app_modal/javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698