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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/display/display_error_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_error_dialog.h
diff --git a/ash/display/display_error_dialog.h b/ash/display/display_error_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fcbf209ada9e8a7ea9c73b29492797cd60e86d2
--- /dev/null
+++ b/ash/display/display_error_dialog.h
@@ -0,0 +1,61 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_
+#define ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_
+
+#include "ash/display/display_controller.h"
+#include "base/compiler_specific.h"
+#include "ui/views/window/dialog_delegate.h"
+
+namespace aura {
+class RootWindow;
+} // namespace aura
+
+namespace gfx {
+class Display;
+class Size;
+} // namespace gfx
+
+namespace views {
+class Label;
+} // namespace views
+
+namespace ash {
+namespace internal {
+
+// Dialog used to show an error messages when unable to change the display
+// configuration to mirroring.
+class DisplayErrorDialog : public views::DialogDelegateView,
+ public ash::DisplayController::Observer {
+ public:
+ // Shows the error dialog.
+ static void ShowDialog();
+
+ private:
+ DisplayErrorDialog();
+ virtual ~DisplayErrorDialog();
+
+ // views::DialogDelegate overrides:
+ virtual int GetDialogButtons() const OVERRIDE;
+
+ // views::WidgetDelegate overrides::
+ virtual ui::ModalType GetModalType() const OVERRIDE;
+ virtual views::View* GetContentsView() OVERRIDE;
+
+ // views::View overrides:
+ virtual gfx::Size GetPreferredSize() OVERRIDE;
+
+ // ash::DisplayController::Observer overrides:
+ virtual void OnDisplayConfigurationChanging() OVERRIDE;
+
+ views::Label* label_;
+
+ DISALLOW_COPY_AND_ASSIGN(DisplayErrorDialog);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_DISPLAY_DISPLAY_ERROR_DIALOG_H_
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/display/display_error_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698