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

Side by Side Diff: chrome/browser/js_before_unload_handler_win.h

Issue 63033: Refactor AppModalDialogQueue and move JS Alert boxes into a MVC. (Closed)
Patch Set: whitespace Created 11 years, 8 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/js_before_unload_handler.h ('k') | chrome/browser/js_before_unload_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698