| 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/material_design/material_design_controller.h" | 7 #include "ash/common/material_design/material_design_controller.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/system/tray/fixed_sized_scroll_view.h" | 9 #include "ash/common/system/tray/fixed_sized_scroll_view.h" |
| 10 #include "ash/common/system/tray/hover_highlight_view.h" | 10 #include "ash/common/system/tray/hover_highlight_view.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 private: | 105 private: |
| 106 DISALLOW_COPY_AND_ASSIGN(BluetoothDefaultView); | 106 DISALLOW_COPY_AND_ASSIGN(BluetoothDefaultView); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 class BluetoothDetailedView : public TrayDetailsView { | 109 class BluetoothDetailedView : public TrayDetailsView { |
| 110 public: | 110 public: |
| 111 BluetoothDetailedView(SystemTrayItem* owner, LoginStatus login) | 111 BluetoothDetailedView(SystemTrayItem* owner, LoginStatus login) |
| 112 : TrayDetailsView(owner), | 112 : TrayDetailsView(owner), |
| 113 login_(login), | 113 login_(login), |
| 114 manage_devices_(nullptr), | 114 manage_devices_(nullptr), |
| 115 throbber_(nullptr), |
| 115 toggle_bluetooth_(nullptr), | 116 toggle_bluetooth_(nullptr), |
| 116 enable_bluetooth_(nullptr) { | 117 enable_bluetooth_(nullptr) { |
| 117 CreateItems(); | 118 CreateItems(); |
| 118 } | 119 } |
| 119 | 120 |
| 120 ~BluetoothDetailedView() override { | 121 ~BluetoothDetailedView() override { |
| 121 // Stop discovering bluetooth devices when exiting BT detailed view. | 122 // Stop discovering bluetooth devices when exiting BT detailed view. |
| 122 BluetoothStopDiscovering(); | 123 BluetoothStopDiscovering(); |
| 123 } | 124 } |
| 124 | 125 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 detailed_->Update(); | 475 detailed_->Update(); |
| 475 } | 476 } |
| 476 | 477 |
| 477 void TrayBluetooth::OnBluetoothDiscoveringChanged() { | 478 void TrayBluetooth::OnBluetoothDiscoveringChanged() { |
| 478 if (!detailed_) | 479 if (!detailed_) |
| 479 return; | 480 return; |
| 480 detailed_->Update(); | 481 detailed_->Update(); |
| 481 } | 482 } |
| 482 | 483 |
| 483 } // namespace ash | 484 } // namespace ash |
| OLD | NEW |