| 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
|
|
|