1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/window/dialog_delegate.h"
14 // Shows a modal warning dialog that the idle action is imminent. Since the
15 // warning is only really necessary when the idle action is to log out the user,
16 // the warning is hard-coded to warn about logout.
17 class IdleActionWarningDialogView
: public views::DialogDelegateView
{
19 IdleActionWarningDialogView();
22 // views::DialogDelegateView:
23 virtual ui::ModalType
GetModalType() const OVERRIDE
;
24 virtual base::string16
GetWindowTitle() const OVERRIDE
;
25 virtual int GetDialogButtons() const OVERRIDE
;
26 virtual bool Cancel() OVERRIDE
;
29 virtual ~IdleActionWarningDialogView();
33 DISALLOW_COPY_AND_ASSIGN(IdleActionWarningDialogView
);
36 } // namespace chromeos
38 #endif // CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_