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

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: 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') | ash/system/chromeos/tray_display.cc » ('J')
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..2c129d1ea02b3f4fb92fe3e26e3848c57dda949c 100644
--- a/ash/system/chromeos/tray_display.h
+++ b/ash/system/chromeos/tray_display.h
@@ -37,11 +37,16 @@ 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);
stevenjb 2013/08/12 21:52:07 one arg per line if not on the same line as the fu
Jun Mukai 2013/08/12 22:07:49 Done.
// 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') | ash/system/chromeos/tray_display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698