Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 1931563002: Add Bluetooth device type icons on the device list in system tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase / Removes ash::BluetoothDeviceInfo::DeviceType and uses existing device::BluetoothDevice::De… Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 void SystemTrayDelegateChromeOS::GetAvailableBluetoothDevices( 621 void SystemTrayDelegateChromeOS::GetAvailableBluetoothDevices(
622 ash::BluetoothDeviceList* list) { 622 ash::BluetoothDeviceList* list) {
623 device::BluetoothAdapter::DeviceList devices = 623 device::BluetoothAdapter::DeviceList devices =
624 bluetooth_adapter_->GetDevices(); 624 bluetooth_adapter_->GetDevices();
625 for (size_t i = 0; i < devices.size(); ++i) { 625 for (size_t i = 0; i < devices.size(); ++i) {
626 device::BluetoothDevice* device = devices[i]; 626 device::BluetoothDevice* device = devices[i];
627 ash::BluetoothDeviceInfo info; 627 ash::BluetoothDeviceInfo info;
628 info.address = device->GetAddress(); 628 info.address = device->GetAddress();
629 info.display_name = device->GetName(); 629 info.display_name = device->GetName();
630 info.device_type = device->GetDeviceType();
630 info.connected = device->IsConnected(); 631 info.connected = device->IsConnected();
631 info.connecting = device->IsConnecting(); 632 info.connecting = device->IsConnecting();
632 info.paired = device->IsPaired(); 633 info.paired = device->IsPaired();
633 list->push_back(info); 634 list->push_back(info);
634 } 635 }
635 } 636 }
636 637
637 void SystemTrayDelegateChromeOS::BluetoothStartDiscovering() { 638 void SystemTrayDelegateChromeOS::BluetoothStartDiscovering() {
638 if (GetBluetoothDiscovering()) { 639 if (GetBluetoothDiscovering()) {
639 LOG(WARNING) << "Already have active Bluetooth device discovery session."; 640 LOG(WARNING) << "Already have active Bluetooth device discovery session.";
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " 1332 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while "
1332 << "ENABLE_SUPERVISED_USERS undefined."; 1333 << "ENABLE_SUPERVISED_USERS undefined.";
1333 return base::string16(); 1334 return base::string16();
1334 } 1335 }
1335 1336
1336 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { 1337 ash::SystemTrayDelegate* CreateSystemTrayDelegate() {
1337 return new SystemTrayDelegateChromeOS(); 1338 return new SystemTrayDelegateChromeOS();
1338 } 1339 }
1339 1340
1340 } // namespace chromeos 1341 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698