| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | 6 #define ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ |
| 7 | 7 |
| 8 #include "ash/display/display_controller.h" | 8 #include "ash/display/display_controller.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/views/window/dialog_delegate.h" | 10 #include "ui/views/window/dialog_delegate.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 DisplayErrorDialog(); | 37 DisplayErrorDialog(); |
| 38 virtual ~DisplayErrorDialog(); | 38 virtual ~DisplayErrorDialog(); |
| 39 | 39 |
| 40 // views::DialogDelegate overrides: | 40 // views::DialogDelegate overrides: |
| 41 virtual int GetDialogButtons() const OVERRIDE; | 41 virtual int GetDialogButtons() const OVERRIDE; |
| 42 | 42 |
| 43 // views::WidgetDelegate overrides:: | 43 // views::WidgetDelegate overrides:: |
| 44 virtual ui::ModalType GetModalType() const OVERRIDE; | 44 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 45 virtual views::View* GetContentsView() OVERRIDE; | |
| 46 | 45 |
| 47 // views::View overrides: | 46 // views::View overrides: |
| 48 virtual gfx::Size GetPreferredSize() OVERRIDE; | 47 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 49 | 48 |
| 50 // ash::DisplayController::Observer overrides: | 49 // ash::DisplayController::Observer overrides: |
| 51 virtual void OnDisplayConfigurationChanging() OVERRIDE; | 50 virtual void OnDisplayConfigurationChanging() OVERRIDE; |
| 52 | 51 |
| 53 views::Label* label_; | 52 views::Label* label_; |
| 54 | 53 |
| 55 DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog); | 54 DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog); |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace internal | 57 } // namespace internal |
| 59 } // namespace ash | 58 } // namespace ash |
| 60 | 59 |
| 61 #endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ | 60 #endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_ |
| OLD | NEW |