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

Side by Side Diff: chrome/browser/chromeos/power/idle_action_warning_dialog_view.h

Issue 18179004: Dismiss action in tab modal dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test for Mac Created 7 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/window/dialog_delegate.h" 10 #include "ui/views/window/dialog_delegate.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 // Shows a modal warning dialog that the idle action is imminent. Since the 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, 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. 16 // the warning is hard-coded to warn about logout.
17 class IdleActionWarningDialogView : public views::DialogDelegateView { 17 class IdleActionWarningDialogView : public views::DialogDelegateView {
18 public: 18 public:
19 IdleActionWarningDialogView(); 19 IdleActionWarningDialogView();
20 void Close(); 20 void CloseDialog();
21 21
22 // views::DialogDelegateView: 22 // views::DialogDelegateView:
23 virtual ui::ModalType GetModalType() const OVERRIDE; 23 virtual ui::ModalType GetModalType() const OVERRIDE;
24 virtual string16 GetWindowTitle() const OVERRIDE; 24 virtual string16 GetWindowTitle() const OVERRIDE;
25 virtual int GetDialogButtons() const OVERRIDE; 25 virtual int GetDialogButtons() const OVERRIDE;
26 virtual bool Cancel() OVERRIDE; 26 virtual bool Cancel() OVERRIDE;
27 27
28 private: 28 private:
29 virtual ~IdleActionWarningDialogView(); 29 virtual ~IdleActionWarningDialogView();
30 30
31 bool closing_; 31 bool closing_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(IdleActionWarningDialogView); 33 DISALLOW_COPY_AND_ASSIGN(IdleActionWarningDialogView);
34 }; 34 };
35 35
36 } // namespace chromeos 36 } // namespace chromeos
37 37
38 #endif // CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/enrollment_dialog_view.cc ('k') | chrome/browser/chromeos/power/idle_action_warning_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698