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/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_ |
OLD | NEW |