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

Unified Diff: athena/system/status_icon_container_view.h

Issue 483363003: [Athena] Add status icons and system time to the desktop background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « athena/system/public/system_ui.h ('k') | athena/system/status_icon_container_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/system/status_icon_container_view.h
diff --git a/athena/system/status_icon_container_view.h b/athena/system/status_icon_container_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..e011ba32ff6a4e1ce31b6da97698533be54682db
--- /dev/null
+++ b/athena/system/status_icon_container_view.h
@@ -0,0 +1,47 @@
+// Copyright 2014 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 ATHENA_SYSTEM_STATUS_ICON_CONTAINER_VIEW_H_
+#define ATHENA_SYSTEM_STATUS_ICON_CONTAINER_VIEW_H_
+
+#include "athena/system/public/system_ui.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/views/view.h"
+
+namespace aura {
+class Window;
+}
+
+namespace athena {
+
+// View which displays the system tray icons.
+class StatusIconContainerView : public views::View {
+ public:
+ explicit StatusIconContainerView(aura::Window* system_modal_container);
+ virtual ~StatusIconContainerView();
+
+ private:
+ // views::View:
+ virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
+ virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
+
+ // Parent container that the "select network" dialog should use.
+ aura::Window* system_modal_container_;
+
+ class PowerStatus;
+ scoped_ptr<PowerStatus> power_status_;
+
+ class NetworkStatus;
+ scoped_ptr<NetworkStatus> network_status_;
+
+ class UpdateStatus;
+ scoped_ptr<UpdateStatus> update_status_;
+
+ DISALLOW_COPY_AND_ASSIGN(StatusIconContainerView);
+};
+
+} // namespace athena
+
+#endif // ATHENA_SYSTEM_STATUS_ICON_CONTAINER_VIEW_H_
« no previous file with comments | « athena/system/public/system_ui.h ('k') | athena/system/status_icon_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698