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

Unified Diff: ash/system/tray/tray_item_more.h

Issue 9753019: ash: Add a bluetooth entry in the uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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/tray_image_item.cc ('k') | ash/system/tray/tray_item_more.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_more.h
diff --git a/ash/system/tray/tray_item_more.h b/ash/system/tray/tray_item_more.h
new file mode 100644
index 0000000000000000000000000000000000000000..dd3aef5ca9b923a2baffdd089da771db5952c64b
--- /dev/null
+++ b/ash/system/tray/tray_item_more.h
@@ -0,0 +1,44 @@
+// 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_TRAY_ITEM_MORE_H_
+#define ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
+#pragma once
+
+#include "ui/views/view.h"
+
+namespace views {
+class ImageView;
+}
+
+namespace ash {
+
+class SystemTrayItem;
+
+namespace internal {
+
+// A view with a chevron ('>') on the right edge. Clicking on the view brings up
+// the detailed view of the tray-item that owns it.
+class TrayItemMore : public views::View {
+ public:
+ explicit TrayItemMore(SystemTrayItem* owner);
+ virtual ~TrayItemMore();
+
+ void AddMore();
+
+ private:
+ // Overridden from views::View.
+ virtual void Layout() OVERRIDE;
+ virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
+
+ SystemTrayItem* owner_;
+ views::ImageView* more_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayItemMore);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
« no previous file with comments | « ash/system/tray/tray_image_item.cc ('k') | ash/system/tray/tray_item_more.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698