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

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

Issue 22908004: Updates the list of display info in TrayDisplay even if notification is prevented. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 4 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 | « no previous file | 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 7adbd31b73d621fad43c5c25191cb7df9c0d7695..328bce545bfee9bcac75c13db46bcd21c24e7c27 100644
--- a/ash/system/chromeos/tray_display.h
+++ b/ash/system/chromeos/tray_display.h
@@ -37,11 +37,17 @@ class ASH_EXPORT TrayDisplay : public SystemTrayItem,
typedef std::map<int64, DisplayInfo> DisplayInfoMap;
- // Checks the current display settings and determine what message should be
- // shown for notification. Returns true if there's a meaningful change. Note
- // that it's possible to return true and set |message| to empty, which means
- // the notification should be removed.
- bool GetDisplayMessageForNotification(base::string16* message);
+ // Scans the current display info and updates |display_info_|. Sets the
+ // previous data to |old_info| if it's not NULL.
+ void UpdateDisplayInfo(DisplayInfoMap* old_info);
+
+ // Compares the current display settings with |old_info| and determine what
+ // message should be shown for notification. Returns true if there's a
+ // meaningful change. Note that it's possible to return true and set |message|
+ // to empty, which means the notification should be removed.
+ bool GetDisplayMessageForNotification(
+ base::string16* message,
+ const DisplayInfoMap& old_info);
// Overridden from SystemTrayItem.
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
« no previous file with comments | « no previous file | ash/system/chromeos/tray_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698