OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | |
6 #define ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "ui/gfx/size.h" | |
oshima
2012/10/01 21:45:20
you can use forward decl unless you embed it on th
Jun Mukai
2012/10/01 23:59:34
Done.
| |
10 #include "ui/views/window/dialog_delegate.h" | |
11 | |
12 namespace views { | |
13 class Label; | |
14 } // namespace views | |
15 | |
16 namespace ash { | |
17 namespace internal { | |
18 | |
19 // Dialog to show error messages when it fails to change the display | |
20 // configuration to mirroring. | |
21 class DisplayErrorDialog : public views::DialogDelegateView { | |
22 public: | |
23 // Shows the dialog to show errors. | |
24 static void ShowDialog(); | |
25 | |
26 private: | |
27 DisplayErrorDialog(); | |
28 virtual ~DisplayErrorDialog(); | |
29 | |
30 // views::DialogDelegate overrides: | |
31 virtual int GetDialogButtons() const OVERRIDE; | |
32 | |
33 // views::WidgetDelegate overrides:: | |
34 virtual ui::ModalType GetModalType() const OVERRIDE; | |
35 virtual views::View* GetContentsView() OVERRIDE; | |
36 | |
37 // views::View overrides: | |
38 virtual gfx::Size GetPreferredSize() OVERRIDE; | |
39 | |
40 views::Label* label_; | |
41 DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog); | |
42 }; | |
43 | |
44 } // namespace internal | |
45 } // namespace ash | |
46 | |
47 #endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | |
OLD | NEW |