summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/bluetooth_device_client.cc
Commit message (Collapse)AuthorAgeFilesLines
* Replace more ObserverList with base::ObserverList.brettw2015-06-031-1/+1
| | | | | | | | | | | | This is everything but the chrome directory CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=zelidrag@chromium.org (chromeos) TBR=keybuk@chromium.org (device/bluetooth) Review URL: https://codereview.chromium.org/1162943002 Cr-Commit-Position: refs/heads/master@{#332626}
* Expose TxPower for bluetooth devices during discoveryjpawlowski2015-05-131-0/+1
| | | | | | | | | | | This patch adds wiring to expose TxPower field during device discovery. BUG=407773 R=armansito@chromium.org Review URL: https://codereview.chromium.org/1133173002 Cr-Commit-Position: refs/heads/master@{#329694}
* Remove duplicate includes from chromeos/pneubeck2015-02-251-1/+0
| | | | | | | | | | | | This removes all includes from $X.cc files where the $X.h has the same include to conform to the style guide: "[...] However, any includes present in the related header do not need to be included again in the related cc (i.e., foo.cc can rely on foo.h's includes)." BUG=460988 Review URL: https://codereview.chromium.org/947173002 Cr-Commit-Position: refs/heads/master@{#318002}
* Update {virtual,override,final} to follow C++11 style in chromeos/dbus.dcheng2015-01-161-36/+31
| | | | | | | | | | | | | | | | The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. This patch was automatically generated with a ChromeOS build using a variation of https://codereview.chromium.org/598073004. BUG=417463 R=hashimoto@chromium.org Review URL: https://codereview.chromium.org/817853005 Cr-Commit-Position: refs/heads/master@{#311851}
* Add GetConnectionInfo function for BluetoothDevice, replacing the existingtengs2015-01-071-42/+38
| | | | | | | | | | | | | | GetRSSI, GetHostTransmitPower, and GetMaximumHostTransmitPower functions. On Mac, this function uses IOBluetooth APIs. On ChromeOS, this function is a wrapper for the GetConnInfo() DBus plugin API. On Windows, this function is unimplemented. BUG=382683 Review URL: https://codereview.chromium.org/735893002 Cr-Commit-Position: refs/heads/master@{#310372}
* replace OVERRIDE and FINAL with override and final in chromeos/mostynb2014-10-061-16/+16
| | | | | | | | BUG=417463 Review URL: https://codereview.chromium.org/628883002 Cr-Commit-Position: refs/heads/master@{#298229}
* Fix minor issues about DBusThreadManager.pneubeck2014-09-111-1/+2
| | | | | | | | | | | | | | - Remove the global unstub_client_mask_ and accordingly make DBusThreadManager::IsUsingStub a non-static function. This makes it obvious when it's ok to call this function (and prevents misuse), namely only after the Manager is initialized. - By moving the mask to the DBusClientBundle, the cyclic dependency between bundle and manager is broken. The Bundle does not know about the Manager anymore. - Fix the difference between DBusClientTypeMask ("A set of DBusClients") and DBusClientType ("A single DBusClient"). BUG=408617 Review URL: https://codereview.chromium.org/556833003 Cr-Commit-Position: refs/heads/master@{#294361}
* Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS.tengs@chromium.org2014-05-111-0/+54
| | | | | | | | BUG=365966 Review URL: https://codereview.chromium.org/273953002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269676 0039d316-1c4b-4281-b951-d872f2087c98
* Remove fake client creation from DBusClients' Create() functions.pneubeck@chromium.org2013-12-031-7/+2
| | | | | | | | | | | | The DBusClient interfaces shouldn't provide functionality related to testing code (like Stubs/fake implementations). Instead fake clients are now directly created without relying on the static Create() functions. The now unused DBusClientImplementationType argument of the Create() functions could be removed. BUG=275286 R=satorux@chromium.org Review URL: https://codereview.chromium.org/91413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238330 0039d316-1c4b-4281-b951-d872f2087c98
* Split construction and initialization of DBus clients.pneubeck@chromium.org2013-08-271-14/+13
| | | | | | | | | | | | | | | Before, each Client had a Create function which constructed an instance of the client and initialized it (with a dbus::Bus*). To make the Clients separately replaceable in the DBusThreadManager, it's necessary to separate the construction of the Clients from their initialization. This CL, splits each Create function into Create (which only calls the constructor of either the real Impl or the Stub) and Init(dbus::Bus*). This is a pure refactoring. BUG=275286 Review URL: https://chromiumcodereview.appspot.com/23119006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219775 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth: drop "Experimental" from Chrome OS backendkeybuk@chromium.org2013-06-121-0/+360
| | | | | | | | | BUG=221813 TEST=device_unittests Review URL: https://chromiumcodereview.appspot.com/14932007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205777 0039d316-1c4b-4281-b951-d872f2087c98
* Bluetooth: remove legacy backendkeybuk@chromium.org2013-05-251-483/+0
| | | | | | | | | BUG=221813 TEST=device_unittests Review URL: https://chromiumcodereview.appspot.com/15020009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202281 0039d316-1c4b-4281-b951-d872f2087c98
* dbus: Add FakeOldBluetooth{Adapter,Device,Manager}haruki@chromium.org2013-05-011-126/+2
| | | | | | | | | | | | They are used in MockDBusThreadManagerWithoutGMock and stub implementations in DBusThreadManager. BUG=234084,234461 TEST=trybots R=satorux@chromium.org Review URL: https://codereview.chromium.org/14508007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197604 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Debug restriction on Bluetooth log messageskeybuk@chromium.org2013-03-081-6/+6
| | | | | | | | | | | | We frequently need to access these in real builds after all. BUG=none TEST=chrome --vmodule=*bluetooth*=3 Review URL: https://chromiumcodereview.appspot.com/12379062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187064 0039d316-1c4b-4281-b951-d872f2087c98
* Cleaning up weak_ptr_factory destruction order.gdk@chromium.org2012-09-071-6/+8
| | | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10917115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155319 0039d316-1c4b-4281-b951-d872f2087c98
* bluetooth: Create stub manager, adapter and device.keybuk@chromium.org2012-08-151-2/+67
| | | | | | | | | | | | | | | | | | | | These stub classes are used when building Chrome on Linux with chromeos=1. They allow sufficient UI to work to show a Bluetooth adapter, enable and disable it, and show an unconnected fake device associated with it. This can be trivially extended to provide all manner of fake Bluetooth information for UI development. BUG=chromium-os:28555 TEST=out/Debug/chrome Change-Id: I7af28be76355fad735389aaf2fa499d0a8dfd76b Review URL: https://chromiumcodereview.appspot.com/10823301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151621 0039d316-1c4b-4281-b951-d872f2087c98
* Fix lint errors for chromeos/dbus/bluetooth*bryeung@chromium.org2012-06-221-0/+1
| | | | | | | | | | TEST=compiles BUG=none Review URL: https://chromiumcodereview.appspot.com/10640008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143596 0039d316-1c4b-4281-b951-d872f2087c98
* Move files inside chrome/browser/chromeos/dbus to chromeos/dbushashimoto@chromium.org2012-04-061-0/+539
Move files in chrome/browser/chromeos/dbus/ to chromeos/dbus Add chromeos/dbus/DEPS Add chromeos.gyp:chromeos_test_support and chromeos.gyp:chromeos_unittests Add CHROMEOS_EXPORT to classes Move power related proto targets to chromeos.gyp Rewrite and sort #includes BUG=119583 TEST=component chromeos build success, checkdeps success Review URL: https://chromiumcodereview.appspot.com/9838085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131065 0039d316-1c4b-4281-b951-d872f2087c98