| 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_WIN_H_ | |
| 6 #define CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_WIN_H_ | |
| 7 | |
| 8 #include "chrome/browser/jsmessage_box_handler_win.h" | |
| 9 | |
| 10 class WebContents; | |
| 11 | |
| 12 class JavascriptBeforeUnloadHandler : public JavascriptMessageBoxHandler { | |
| 13 public: | |
| 14 // Cross-platform code should use RunBeforeUnloadDialog. | |
| 15 JavascriptBeforeUnloadHandler(WebContents* web_contents, | |
| 16 const GURL& frame_url, | |
| 17 const std::wstring& message_text, | |
| 18 IPC::Message* reply_msg); | |
| 19 virtual ~JavascriptBeforeUnloadHandler() {} | |
| 20 | |
| 21 // views::DialogDelegate Methods: | |
| 22 virtual std::wstring GetWindowTitle() const; | |
| 23 virtual std::wstring GetDialogButtonLabel(DialogButton button) const; | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(JavascriptBeforeUnloadHandler); | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_JS_BEFORE_UNLOAD_HANDLER_WIN_H_ | |
| OLD | NEW |