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

Unified Diff: ash/system/bluetooth/tray_bluetooth.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/bluetooth/bluetooth_observer.h ('k') | ash/system/bluetooth/tray_bluetooth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/bluetooth/tray_bluetooth.h
diff --git a/ash/system/bluetooth/tray_bluetooth.h b/ash/system/bluetooth/tray_bluetooth.h
new file mode 100644
index 0000000000000000000000000000000000000000..e5d1794d74e52acb2702c6292c426a431ec067c9
--- /dev/null
+++ b/ash/system/bluetooth/tray_bluetooth.h
@@ -0,0 +1,49 @@
+// 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_BLUETOOTH_TRAY_BLUETOOTH_H_
+#define ASH_SYSTEM_BLUETOOTH_TRAY_BLUETOOTH_H_
+#pragma once
+
+#include "ash/system/bluetooth/bluetooth_observer.h"
+#include "ash/system/tray/tray_image_item.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace ash {
+namespace internal {
+
+namespace tray {
+class BluetoothDefaultView;
+class BluetoothDetailedView;
+}
+
+class TrayBluetooth : public TrayImageItem,
+ public BluetoothObserver {
+ public:
+ TrayBluetooth();
+ virtual ~TrayBluetooth();
+
+ private:
+ // Overridden from TrayImageItem.
+ virtual bool GetInitialVisibility() OVERRIDE;
+
+ // Overridden from SystemTrayItem.
+ virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
+ virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
+ virtual void DestroyDefaultView() OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
+
+ // Overridden from BluetoothObserver.
+ virtual void OnBluetoothRefresh() OVERRIDE;
+
+ scoped_ptr<tray::BluetoothDefaultView> default_;
+ scoped_ptr<tray::BluetoothDetailedView> detailed_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayBluetooth);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_BLUETOOTH_TRAY_BLUETOOTH_H_
« no previous file with comments | « ash/system/bluetooth/bluetooth_observer.h ('k') | ash/system/bluetooth/tray_bluetooth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698