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

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

Issue 14507003: Add tray warning for Locally managed users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win-aura compile error Created 7 years, 8 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/chromeos/enterprise/tray_enterprise.cc ('k') | ash/system/chromeos/label_tray_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/label_tray_view.h
diff --git a/ash/system/chromeos/label_tray_view.h b/ash/system/chromeos/label_tray_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..402f5c3746627dd4300d0d565ec3f1c1b0628da6
--- /dev/null
+++ b/ash/system/chromeos/label_tray_view.h
@@ -0,0 +1,37 @@
+// 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_CHROMEOS_LABEL_TRAY_VIEW_H_
+#define ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
+
+#include "base/string16.h"
+#include "ui/views/view.h"
+
+namespace ash {
+namespace internal {
+
+class ViewClickListener;
+
+// View for simple information in tray. Automatically hides when message is
+// empty. Supports multiline messages.
+
+class LabelTrayView : public views::View {
+ public:
+ LabelTrayView(ViewClickListener* click_listener, int icon_resource_id);
+ virtual ~LabelTrayView();
+ void SetMessage(const base::string16& message);
+ private:
+ views::View* CreateChildView(const base::string16& message) const;
+
+ ViewClickListener* click_listener_;
+ int icon_resource_id_;
+ base::string16 message_;
+
+ DISALLOW_COPY_AND_ASSIGN(LabelTrayView);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_CHROMEOS_LABEL_TRAY_VIEW_H_
« no previous file with comments | « ash/system/chromeos/enterprise/tray_enterprise.cc ('k') | ash/system/chromeos/label_tray_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698