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

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 "ash/display/display_controller.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/window/dialog_delegate.h"
11
12 namespace aura {
13 class RootWindow;
14 } // namespace aura
15
16 namespace gfx {
17 class Display;
18 class Size;
19 } // namespace gfx
20
21 namespace views {
22 class Label;
23 } // namespace views
24
25 namespace ash {
26 namespace internal {
27
28 // Dialog to show error messages when it fails to change the display
sky 2012/10/05 15:26:15 Dialog used to show an error message when unable t
Jun Mukai 2012/10/05 20:30:50 Done.
29 // configuration to mirroring.
30 class DisplayErrorDialog : public views::DialogDelegateView,
31 public ash::DisplayController::Observer {
32 public:
33 // Shows the dialog to show errors.
sky 2012/10/05 15:26:15 Shows the error dialog.
Jun Mukai 2012/10/05 20:30:50 Done.
34 static void ShowDialog();
35
36 private:
37 DisplayErrorDialog();
38 virtual ~DisplayErrorDialog();
39
40 // views::DialogDelegate overrides:
41 virtual int GetDialogButtons() const OVERRIDE;
42
43 // views::WidgetDelegate overrides::
44 virtual ui::ModalType GetModalType() const OVERRIDE;
45 virtual views::View* GetContentsView() OVERRIDE;
46
47 // views::View overrides:
48 virtual gfx::Size GetPreferredSize() OVERRIDE;
49
50 // ash::DisplayController::Observer overrides:
51 virtual void OnDisplayConfigurationChanging() OVERRIDE;
52
53 views::Label* label_;
54 DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog);
sky 2012/10/05 15:26:15 nit: newline between 53/54.
Jun Mukai 2012/10/05 20:30:50 Done.
55 };
56
57 } // namespace internal
58 } // namespace ash
59
60 #endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698