OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/system/bluetooth/tray_bluetooth.h" |
| 6 |
| 7 #include "ash/shell.h" |
| 8 #include "ash/system/tray/system_tray.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 |
| 11 namespace ash { |
| 12 namespace internal { |
| 13 |
| 14 TrayBluetooth::TrayBluetooth() { |
| 15 } |
| 16 |
| 17 TrayBluetooth::~TrayBluetooth() { |
| 18 } |
| 19 |
| 20 views::View* TrayBluetooth::CreateTrayView(user::LoginStatus status) { |
| 21 return NULL; |
| 22 } |
| 23 |
| 24 views::View* TrayBluetooth::CreateDefaultView(user::LoginStatus status) { |
| 25 return NULL; |
| 26 } |
| 27 |
| 28 views::View* TrayBluetooth::CreateDetailedView(user::LoginStatus status) { |
| 29 return NULL; |
| 30 } |
| 31 |
| 32 void TrayBluetooth::DestroyTrayView() { |
| 33 } |
| 34 |
| 35 void TrayBluetooth::DestroyDefaultView() { |
| 36 } |
| 37 |
| 38 void TrayBluetooth::DestroyDetailedView() { |
| 39 } |
| 40 |
| 41 void TrayBluetooth::OnBluetoothRefresh() { |
| 42 BluetoothDeviceList list = |
| 43 Shell::GetInstance()->tray_delegate()->GetAvailableBluetoothDevices(); |
| 44 for (size_t i = 0; i < list.size(); ++i) { |
| 45 LOG(ERROR) << "Bluetooth device: \n" |
| 46 << " address: " << list[i].address << "\n" |
| 47 << " name: " << list[i].display_name << "\n" |
| 48 << " connected: " << list[i].connected; |
| 49 } |
| 50 } |
| 51 |
| 52 } // namespace internal |
| 53 } // namespace ash |
OLD | NEW |