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

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

Issue 17445002: Updates the display message in the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: ash/system/chromeos/tray_display.h
diff --git a/ash/system/chromeos/tray_display.h b/ash/system/chromeos/tray_display.h
index 0265704ea677b3eb92943838ed52459a8c594575..315fbbdcac3517955daab3724892a108b7b7b067 100644
--- a/ash/system/chromeos/tray_display.h
+++ b/ash/system/chromeos/tray_display.h
@@ -5,8 +5,12 @@
#ifndef ASH_SYSTEM_CHROMEOS_TRAY_DISPLAY_H_
#define ASH_SYSTEM_CHROMEOS_TRAY_DISPLAY_H_
+#include <map>
+
#include "ash/display/display_controller.h"
+#include "ash/display/display_info.h"
#include "ash/system/tray/system_tray_item.h"
+#include "base/string16.h"
namespace views {
class View;
@@ -15,13 +19,6 @@ class View;
namespace ash {
namespace internal {
-enum TrayDisplayMode {
- TRAY_DISPLAY_SINGLE,
- TRAY_DISPLAY_EXTENDED,
- TRAY_DISPLAY_MIRRORED,
- TRAY_DISPLAY_DOCKED,
-};
-
class DisplayView;
class DisplayNotificationView;
@@ -32,6 +29,10 @@ class TrayDisplay : public SystemTrayItem,
virtual ~TrayDisplay();
private:
+ // Checks the current display settings and determine what message should be
+ // shown for notification.
+ base::string16 GetDisplayMessageForNotification();
+
// Overridden from SystemTrayItem.
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateNotificationView(
@@ -45,7 +46,8 @@ class TrayDisplay : public SystemTrayItem,
DisplayView* default_;
DisplayNotificationView* notification_;
- TrayDisplayMode current_mode_;
+ string16 current_message_;
+ std::map<int64, DisplayInfo> display_info_;
DISALLOW_COPY_AND_ASSIGN(TrayDisplay);
};

Powered by Google App Engine
This is Rietveld 408576698