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

Unified Diff: ash/system/chromeos/tray_display.h

Issue 16046007: Shows the display info as a popup when a new display is connected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PopupDetailedView -> ShowNotificationView Created 7 years, 7 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/system/chromeos/tray_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/tray_display.h
diff --git a/ash/system/chromeos/tray_display.h b/ash/system/chromeos/tray_display.h
index 524ffe8e5cd89119a27bb442627439c3262f7dad..0265704ea677b3eb92943838ed52459a8c594575 100644
--- a/ash/system/chromeos/tray_display.h
+++ b/ash/system/chromeos/tray_display.h
@@ -5,13 +5,8 @@
#ifndef ASH_SYSTEM_CHROMEOS_TRAY_DISPLAY_H_
#define ASH_SYSTEM_CHROMEOS_TRAY_DISPLAY_H_
+#include "ash/display/display_controller.h"
#include "ash/system/tray/system_tray_item.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/gfx/display_observer.h"
-
-#if defined(OS_CHROMEOS)
-#include "chromeos/display/output_configurator.h"
-#endif
namespace views {
class View;
@@ -19,13 +14,19 @@ class View;
namespace ash {
namespace internal {
+
+enum TrayDisplayMode {
+ TRAY_DISPLAY_SINGLE,
+ TRAY_DISPLAY_EXTENDED,
+ TRAY_DISPLAY_MIRRORED,
+ TRAY_DISPLAY_DOCKED,
+};
+
class DisplayView;
+class DisplayNotificationView;
class TrayDisplay : public SystemTrayItem,
-#if defined(OS_CHROMEOS)
- public chromeos::OutputConfigurator::Observer,
-#endif
- public gfx::DisplayObserver {
+ public DisplayController::Observer {
public:
explicit TrayDisplay(SystemTray* system_tray);
virtual ~TrayDisplay();
@@ -33,19 +34,18 @@ class TrayDisplay : public SystemTrayItem,
private:
// Overridden from SystemTrayItem.
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
+ virtual views::View* CreateNotificationView(
+ user::LoginStatus status) OVERRIDE;
virtual void DestroyDefaultView() OVERRIDE;
+ virtual void DestroyNotificationView() OVERRIDE;
+ virtual bool ShouldShowLauncher() const OVERRIDE;
- // Overridden from aura::DisplayObserver
- virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
- virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
- virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
-
-#if defined(OS_CHROMEOS)
- // Overridden from chromeos::OutputConfigurator::Observer
- virtual void OnDisplayModeChanged() OVERRIDE;
-#endif
+ // Overridden from DisplayControllerObserver:
+ virtual void OnDisplayConfigurationChanged() OVERRIDE;
DisplayView* default_;
+ DisplayNotificationView* notification_;
+ TrayDisplayMode current_mode_;
DISALLOW_COPY_AND_ASSIGN(TrayDisplay);
};
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/chromeos/tray_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698