OLD | NEW |
| (Empty) |
1 // Copyright (c) 2006-2008 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_JS_BEFORE_UNLOAD_HANDLER_H_ | |
6 #define CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ | |
7 | |
8 // This will display a modal dialog box with a header and footer asking the | |
9 // the user if they wish to navigate away from a page, with additional text | |
10 // |message_text| between the header and footer. The users response is | |
11 // returned to the renderer using |reply_msg|. | |
12 void RunBeforeUnloadDialog(WebContents* web_contents, | |
13 const GURL& frame_url, | |
14 const std::wstring& message_text, | |
15 IPC::Message* reply_msg); | |
16 | |
17 #endif // CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_H_ | |
OLD | NEW |