blob: e272bee5eebf6a5265d3a88e5f968b9ab80fe85f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_VIEWS_RESTART_MESSAGE_BOX_H_
#define CHROME_BROWSER_VIEWS_RESTART_MESSAGE_BOX_H_
#include "base/basictypes.h"
#include "chrome/views/dialog_delegate.h"
class MessageBoxView;
// A dialog box that tells the user that s/he needs to restart Chrome
// for a change to take effect.
class RestartMessageBox : public ChromeViews::DialogDelegate {
public:
// This box is modal to |parent_hwnd|.
static void ShowMessageBox(HWND parent_hwnd);
protected:
// ChromeViews::DialogDelegate:
virtual int GetDialogButtons() const;
virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
virtual std::wstring GetWindowTitle() const;
// ChromeViews::WindowDelegate:
virtual void WindowClosing();
virtual bool IsModal() const;
virtual ChromeViews::View* GetContentsView();
private:
explicit RestartMessageBox(HWND parent_hwnd);
virtual ~RestartMessageBox();
MessageBoxView* message_box_view_;
DISALLOW_EVIL_CONSTRUCTORS(RestartMessageBox);
};
#endif // CHROME_BROWSER_VIEWS_RESTART_MESSAGE_BOX_H_
|