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

Unified Diff: ash/common/system/tray/system_tray_delegate.h

Issue 2148943002: mash: Create system tray display and rotation lock items via delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments, add rotation lock Created 4 years, 5 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/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_delegate.h
diff --git a/ash/common/system/tray/system_tray_delegate.h b/ash/common/system/tray/system_tray_delegate.h
index 5c4de80ebd3808bb956f64740a727d5298067dab..077401a0cdbd1122fd4537a75ef7ba9415aec1ad 100644
--- a/ash/common/system/tray/system_tray_delegate.h
+++ b/ash/common/system/tray/system_tray_delegate.h
@@ -29,6 +29,8 @@ namespace ash {
class CustodianInfoTrayObserver;
class ShutdownPolicyObserver;
+class SystemTray;
+class SystemTrayItem;
struct ASH_EXPORT NetworkIconInfo {
NetworkIconInfo();
@@ -335,6 +337,18 @@ class ASH_EXPORT SystemTrayDelegate {
// Returns VPNDelegate. May return nullptr.
virtual VPNDelegate* GetVPNDelegate() const;
+
+ // Creates a system tray item for display settings.
+ // TODO(jamescook): Remove this when mus has support for display management
+ // and we have a DisplayManager equivalent. See http://crbug.com/548429
+ virtual std::unique_ptr<SystemTrayItem> CreateDisplayTrayItem(
+ SystemTray* tray);
+
+ // Creates a system tray item for display rotation lock.
+ // TODO(jamescook): Remove this when mus has support for display management
+ // and we have a DisplayManager equivalent. See http://crbug.com/548429
+ virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
+ SystemTray* tray);
};
} // namespace ash
« no previous file with comments | « no previous file | ash/common/system/tray/system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698