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

Unified Diff: ash/system/tray_user.h

Issue 9561003: ash uber tray: Add a tray item for the user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetUserDisplayName instead of GetUserName Created 8 years, 10 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/system/tray/system_tray_delegate.h ('k') | ash/system/tray_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_user.h
diff --git a/ash/system/tray_user.h b/ash/system/tray_user.h
new file mode 100644
index 0000000000000000000000000000000000000000..2baede72fc7629694ea81afca6bd90ae4a16b298
--- /dev/null
+++ b/ash/system/tray_user.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_TRAY_USER_H_
+#define ASH_SYSTEM_TRAY_USER_H_
+#pragma once
+
+#include "ash/system/tray/system_tray_item.h"
+
+namespace ash {
+namespace internal {
+
+class TrayUser : public SystemTrayItem {
+ public:
+ TrayUser();
+ virtual ~TrayUser();
+
+ private:
+ // Overridden from SystemTrayItem
+ virtual views::View* CreateTrayView() OVERRIDE;
+ virtual views::View* CreateDefaultView() OVERRIDE;
+ virtual views::View* CreateDetailedView() OVERRIDE;
+ virtual void DestroyTrayView() OVERRIDE;
+ virtual void DestroyDefaultView() OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayUser);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_TRAY_USER_H_
« no previous file with comments | « ash/system/tray/system_tray_delegate.h ('k') | ash/system/tray_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698