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

Side by Side Diff: ash/display/display_error_dialog.h

Issue 10986087: Adds DisplayErrorDialog to show the error message of the failure of mirroring to the users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698