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

Unified Diff: ash/system/bluetooth/tray_bluetooth.cc

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
Index: ash/system/bluetooth/tray_bluetooth.cc
diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc
new file mode 100644
index 0000000000000000000000000000000000000000..45b85237282750b8cac2bbd4938e74f8d98d5e3c
--- /dev/null
+++ b/ash/system/bluetooth/tray_bluetooth.cc
@@ -0,0 +1,53 @@
+// 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.
+
+#include "ash/system/bluetooth/tray_bluetooth.h"
+
+#include "ash/shell.h"
+#include "ash/system/tray/system_tray.h"
+#include "ash/system/tray/system_tray_delegate.h"
+
+namespace ash {
+namespace internal {
+
+TrayBluetooth::TrayBluetooth() {
+}
+
+TrayBluetooth::~TrayBluetooth() {
+}
+
+views::View* TrayBluetooth::CreateTrayView(user::LoginStatus status) {
+ return NULL;
+}
+
+views::View* TrayBluetooth::CreateDefaultView(user::LoginStatus status) {
+ return NULL;
+}
+
+views::View* TrayBluetooth::CreateDetailedView(user::LoginStatus status) {
+ return NULL;
+}
+
+void TrayBluetooth::DestroyTrayView() {
+}
+
+void TrayBluetooth::DestroyDefaultView() {
+}
+
+void TrayBluetooth::DestroyDetailedView() {
+}
+
+void TrayBluetooth::OnBluetoothRefresh() {
+ BluetoothDeviceList list =
+ Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices();
+ for (size_t i = 0; i < list.size(); ++i) {
+ LOG(ERROR) << "Bluetooth device: \n"
+ << " address: " << list[i].address << "\n"
+ << " name: " << list[i].display_name << "\n"
+ << " connected: " << list[i].connected;
+ }
+}
+
+} // namespace internal
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698