| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 | 564 |
| 565 void SystemTrayDelegateChromeOS::ToggleBluetooth() { | 565 void SystemTrayDelegateChromeOS::ToggleBluetooth() { |
| 566 bluetooth_adapter_->SetPowered(!bluetooth_adapter_->IsPowered(), | 566 bluetooth_adapter_->SetPowered(!bluetooth_adapter_->IsPowered(), |
| 567 base::Bind(&base::DoNothing), | 567 base::Bind(&base::DoNothing), |
| 568 base::Bind(&base::DoNothing)); | 568 base::Bind(&base::DoNothing)); |
| 569 } | 569 } |
| 570 | 570 |
| 571 void SystemTrayDelegateChromeOS::ShowOtherNetworkDialog( | 571 void SystemTrayDelegateChromeOS::ShowOtherNetworkDialog( |
| 572 const std::string& type) { | 572 const std::string& type) { |
| 573 if (type == shill::kTypeCellular) { | 573 if (type == shill::kTypeCellular) { |
| 574 ChooseMobileNetworkDialog::ShowDialog(GetNativeWindow()); | 574 ChooseMobileNetworkDialog::ShowDialogInContainer( |
| 575 SystemTrayClient::GetDialogParentContainerId()); |
| 575 return; | 576 return; |
| 576 } | 577 } |
| 577 NetworkConfigView::ShowForType(type, GetNativeWindow()); | 578 NetworkConfigView::ShowForType(type, GetNativeWindow()); |
| 578 } | 579 } |
| 579 | 580 |
| 580 bool SystemTrayDelegateChromeOS::GetBluetoothAvailable() { | 581 bool SystemTrayDelegateChromeOS::GetBluetoothAvailable() { |
| 581 return bluetooth_adapter_ && bluetooth_adapter_->IsPresent(); | 582 return bluetooth_adapter_ && bluetooth_adapter_->IsPresent(); |
| 582 } | 583 } |
| 583 | 584 |
| 584 bool SystemTrayDelegateChromeOS::GetBluetoothEnabled() { | 585 bool SystemTrayDelegateChromeOS::GetBluetoothEnabled() { |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " | 1113 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " |
| 1113 << "ENABLE_SUPERVISED_USERS undefined."; | 1114 << "ENABLE_SUPERVISED_USERS undefined."; |
| 1114 return base::string16(); | 1115 return base::string16(); |
| 1115 } | 1116 } |
| 1116 | 1117 |
| 1117 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { | 1118 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { |
| 1118 return new SystemTrayDelegateChromeOS(); | 1119 return new SystemTrayDelegateChromeOS(); |
| 1119 } | 1120 } |
| 1120 | 1121 |
| 1121 } // namespace chromeos | 1122 } // namespace chromeos |
| OLD | NEW |