| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/common/system/chromeos/bluetooth/tray_bluetooth.h" | 5 #include "ash/common/system/chromeos/bluetooth/tray_bluetooth.h" |
| 6 | 6 |
| 7 #include "ash/common/session/session_state_delegate.h" | 7 #include "ash/common/session/session_state_delegate.h" |
| 8 #include "ash/common/system/tray/fixed_sized_scroll_view.h" | 8 #include "ash/common/system/tray/fixed_sized_scroll_view.h" |
| 9 #include "ash/common/system/tray/hover_highlight_view.h" | 9 #include "ash/common/system/tray/hover_highlight_view.h" |
| 10 #include "ash/common/system/tray/system_tray.h" | 10 #include "ash/common/system/tray/system_tray.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 BluetoothDeviceList connecting_devices_; | 387 BluetoothDeviceList connecting_devices_; |
| 388 BluetoothDeviceList paired_not_connected_devices_; | 388 BluetoothDeviceList paired_not_connected_devices_; |
| 389 BluetoothDeviceList discovered_not_paired_devices_; | 389 BluetoothDeviceList discovered_not_paired_devices_; |
| 390 | 390 |
| 391 DISALLOW_COPY_AND_ASSIGN(BluetoothDetailedView); | 391 DISALLOW_COPY_AND_ASSIGN(BluetoothDetailedView); |
| 392 }; | 392 }; |
| 393 | 393 |
| 394 } // namespace tray | 394 } // namespace tray |
| 395 | 395 |
| 396 TrayBluetooth::TrayBluetooth(SystemTray* system_tray) | 396 TrayBluetooth::TrayBluetooth(SystemTray* system_tray) |
| 397 : SystemTrayItem(system_tray), default_(NULL), detailed_(NULL) { | 397 : SystemTrayItem(system_tray, UMA_BLUETOOTH), |
| 398 default_(nullptr), |
| 399 detailed_(nullptr) { |
| 398 WmShell::Get()->system_tray_notifier()->AddBluetoothObserver(this); | 400 WmShell::Get()->system_tray_notifier()->AddBluetoothObserver(this); |
| 399 } | 401 } |
| 400 | 402 |
| 401 TrayBluetooth::~TrayBluetooth() { | 403 TrayBluetooth::~TrayBluetooth() { |
| 402 WmShell::Get()->system_tray_notifier()->RemoveBluetoothObserver(this); | 404 WmShell::Get()->system_tray_notifier()->RemoveBluetoothObserver(this); |
| 403 } | 405 } |
| 404 | 406 |
| 405 views::View* TrayBluetooth::CreateTrayView(LoginStatus status) { | 407 views::View* TrayBluetooth::CreateTrayView(LoginStatus status) { |
| 406 return NULL; | 408 return NULL; |
| 407 } | 409 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 detailed_->Update(); | 445 detailed_->Update(); |
| 444 } | 446 } |
| 445 | 447 |
| 446 void TrayBluetooth::OnBluetoothDiscoveringChanged() { | 448 void TrayBluetooth::OnBluetoothDiscoveringChanged() { |
| 447 if (!detailed_) | 449 if (!detailed_) |
| 448 return; | 450 return; |
| 449 detailed_->Update(); | 451 detailed_->Update(); |
| 450 } | 452 } |
| 451 | 453 |
| 452 } // namespace ash | 454 } // namespace ash |
| OLD | NEW |