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

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/views/window/dialog_delegate.h"
10
11 namespace gfx {
12 class Size;
13 } // namespace gfx
14
15 namespace views {
16 class Label;
17 } // namespace views
18
19 namespace ash {
20 namespace internal {
21
22 // Dialog to show error messages when it fails to change the display
23 // configuration to mirroring.
24 class DisplayErrorDialog : public views::DialogDelegateView {
25 public:
26 // Shows the dialog to show errors.
27 static void ShowDialog();
28
29 private:
30 DisplayErrorDialog();
31 virtual ~DisplayErrorDialog();
32
33 // views::DialogDelegate overrides:
34 virtual int GetDialogButtons() const OVERRIDE;
35
36 // views::WidgetDelegate overrides::
37 virtual ui::ModalType GetModalType() const OVERRIDE;
38 virtual views::View* GetContentsView() OVERRIDE;
39
40 // views::View overrides:
41 virtual gfx::Size GetPreferredSize() OVERRIDE;
42
43 views::Label* label_;
44 DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog);
45 };
46
47 } // namespace internal
48 } // namespace ash
49
50 #endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698