| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I apparently lied when I said the API was definitely not going to
change. Based on feedback make a few cleanups to the listen-related API
methods:
- Remove listenUsingInsecureRfcomm(). This is not implemented at all
on Windows or OS X, and on Chrome OS is only implemented for BT 1.0
and 2.0 devices.
- Replace the arguments of listenUsingRfcomm() and listenUsingL2cap()
that are usually okay to just use the defaults with an optional
object.
This makes the most common-case really easy to program for, and
also means we can extend these methods later without breaking
compatibility by adding new optional entries to this object.
BUG=None
TEST=tests updated
R=armansito@chromium.org, isherman@chromium.org, kalman@chromium.org, miket@chromium.org, rpaquay@chromium.org, xiyuan@chromium.org
Review URL: https://codereview.chromium.org/323603002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276154 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the old BluetoothProfileMac implementation and instead extend
BluetoothSocketMac to handle making outgoing connections and accept
incoming connections using IOBluetooth directly.
Remove all the rest of the vestigial BluetoothProfile references as well.
BUG=372495
TEST=BluetoothTest app
Review URL: https://codereview.chromium.org/318203002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276138 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Linux when using the RFCOMM protocol read() can return ECONNRESET
if the remote end has been disconnected since the last read call,
rather than the usual 0.
BUG=None
TEST=rctest -c, device_unittests
Review URL: https://codereview.chromium.org/313963005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276129 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was tested with:
$ gn gen out/Debug_gn --args='use_ozone=true'
$ ninja -C out/Debug_gn events_ozone events_ozone_evdev
BUG=None
TEST=see above
R=brettw@chromium.org
TBR=ben@chromium # for ui/ changes
NOTRY=true
Review URL: https://codereview.chromium.org/322983002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276044 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL updates the Chrome D-Bus bindings and modifies the device/bluetooth
GATT Chrome OS code to use the new bindings defined in crbug.com/378182 for
descriptor value reads and writes.
BUG=378182
TEST=device_unittests; manual tests using custom bluetoothd
Review URL: https://codereview.chromium.org/309623002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275718 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original BlueZ GATT API doc spec used DBus.Properties interface for
characteristic value access. Since we are modifying this API for Chrome OS,
this CL updates the Chrome D-Bus bindings and modifies the device/bluetooth
GATT code to use the new bindings for characteristic value reads, writes, and
updates.
BUG=378182
TEST=Tested against my custom bluetoothd build; device_unittests
Review URL: https://codereview.chromium.org/301093003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275693 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=372495
TEST=none
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/317333002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275622 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements GATT characteristic properties for
BluetoothRemoteGattCharacteristicChromeOS. Also, a typo in the "Writable
Auxiliaries" property declaration has been fixed.
BUG=362799
TEST=device_unittests, browser_tests
Review URL: https://codereview.chromium.org/307453007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275599 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/322623002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275578 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the functionality we still need into the BluetoothDevice class.
BUG=372495
TEST=none
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/317073011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275532 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- BluetoothSocketWin::StartService -> BluetoothSocketWin::Listen;
- Update BluetoothSocketWin::Connect to use a new semantics;
- Impelment BluetoothDeviceWin::ConnectToService and
BluetoothAdapterWin::CreateRfcommService using the above two;
- Remove no longer needed BluetoothProfileWin;
BUG=372494
Review URL: https://codereview.chromium.org/320463002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275394 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=embedded=1 build
NOTRY=true
TBR=dnicoara
Review URL: https://codereview.chromium.org/317823005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275219 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We mark paired devices as Trusted so this method call should never be
called in practice. But there is a race where if the service connection
is being made directly (e.g. via l2test or rctest) then BlueZ doesn't
process the property change until after its already sent the
AuthorizeService method call.
So always approve service connections for paired devices, which is the
intended effect of Trusted anyway.
BUG=None
Review URL: https://codereview.chromium.org/310323002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275212 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Disabled compiling of classes and unittests that require Udev.
BUG=none
TESTS=Ran device_unittests with use_udev=0 and use_udev=1
Review URL: https://codereview.chromium.org/316953002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275161 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL fixes a bug in which a BluetoothRemoteGattServiceChromeOS sent a
BluetoothGattService::Observer::GattServiceChanged event even when the
underlying D-Bus object that triggered the property change signal did not
correspond to the instance in question. This is fixed by correctly checking
that the object paths match.
BUG=none
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/313013003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274936 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: https://codereview.chromium.org/302093009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274658 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change some targets to source sets. These are small ones that are currently depended on by other source sets. This avoids some duplicate symbols.
duplicated.
Fix some conditions around the touch_device in ui/base.
Lots of Skia build fixes. It turns out our skia library does not use the "util" target, and some of the files in "util" reference functions that it seems are never defined in any file. This removes the ones in our list that weren't in skia_library.gypi to make accessibility_unittests link.
Update gesture recogniser file lists.
BUG=377890
TBR=scottmg
Review URL: https://codereview.chromium.org/305993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274022 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These is no platform implementation, with no available APIs on at least
Chrome OS and OS X to implement these, and Android does not support
Out of Band Pairing.
Thus remove the APIs, they can always be put back later if we find an
implementation.
BUG=376492
Review URL: https://codereview.chromium.org/293063015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273136 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=376211
TBR=rockot@chromium.org
Review URL: https://codereview.chromium.org/293113002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272258 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=None
TBR=armansito
Review URL: https://codereview.chromium.org/294163004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271965 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Most code uses PLOG with the same effect.
TBR=bradchen
NOTRY=true
Review URL: https://codereview.chromium.org/281223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271949 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This device does not require pairing. It is necessary to connect it to
a USB port so it will become available. When disconnected from the USB,
the device will try to connect via Bluetooth, at this time it is marked
as trusted.
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
R=keybuk@chromium.org
BUG=366356
Review URL: https://codereview.chromium.org/287073003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271377 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=371014
TEST=device_unittests
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/288903003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271179 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
locale-sensitive.
BUG=373096
TEST=none
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/286993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270897 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/288833003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270633 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It seems to be nicer to have it contained in device/usb directory as it
is related to it and nice to have fewer random directories under
//tools.
BUG=None
TEST=ninja -C out/Debug device_usb (or just usb in GN).
R=keybuk@chromium.org, bryeung@chromium.org
Review URL: https://codereview.chromium.org/279383004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270469 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=373096
TEST=device_unittests
R=keybuk@chromium.org
Review URL: https://codereview.chromium.org/285633003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270400 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the old BluetoothProfileChromeOS implementation and instead
extend BluetoothSocketChromeOS to handle making outgoing connections
and accepting incoming connections through the D-Bus API.
BUG=372493
TEST=device_unittests --gtest_filter=BluetoothSocketChromeOSTest.*
Review URL: https://codereview.chromium.org/276573004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270245 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements the getDescriptors method of the bluetoothLowEnergy API and
adds a mapping for Descriptor instance IDs to BluetoothLowEnergyEventRouter.
BUG=265663
TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.*
Review URL: https://codereview.chromium.org/277153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270175 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes the C++ BluetoothAdapter and BluetoothSocket API changes,
but does not include platform-specific implementations. Tests are
included since there is sufficient mock code to drive a test.
BUG=349475,364581
TEST=browser_tests --gtest_filter=BluetoothSocketApiTest.Listen
Review URL: https://codereview.chromium.org/278663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269814 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
This matches the current ChromeOS implementation.
BUG=355788
R=rpaquay@chromium.org
Review URL: https://codereview.chromium.org/279503003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269596 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL introduces the following changes to the GATT API:
* New BluetoothGattService::Observer methods:
- GattDescriptorAdded
- GattDescriptorRemoved
- GattDescriptorValueChanged
* New BluetoothGattCharacteristic::GetDescriptor method to obtain a
characteristic's descriptor by descriptor identifier.
BUG=265663
TEST=device_unittests
Review URL: https://codereview.chromium.org/264053004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269138 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
to a device.
BUG=369317
TEST=(see bug)
R=rpaquay@chromium.org
Review URL: https://codereview.chromium.org/263833006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269104 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes the C++ BluetoothDevice API, but does not include
platform-specific implementations. Tests are included since there is
sufficient mock code to drive a test.
BUG=349475,364581,366892
TEST=browser_tests --gtest_filter=BluetoothSocketApiTest.Connect
R=armansito@chromium.org, isherman@chromium.org, rpaquay@chromium.org
Review URL: https://codereview.chromium.org/273443005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269037 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If this change breaks some bots, please try restarting the
bot before reverting it. http://crrev.com/264460 may not be
effective yet until restarting.
See the bug and http://crrev.com/255129 for the details.
BUG=345554
Review URL: https://codereview.chromium.org/258433005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268876 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Several incorrect assumptions about actual and expected buffer
sizes are corrected in the Windows HidConnection implementation.
BUG=369344
TBR=rpaquay
Review URL: https://codereview.chromium.org/261053005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268215 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL implements the getCharacteristics method of the bluetoothLowEnergy API
and adds a mapping for Characteristic instance IDs to
BluetoothLowEnergyEventRouter.
BUG=265663
TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.*
Review URL: https://codereview.chromium.org/255053002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268009 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since Chrome OS uses a socket-based interface much of the code already in
BluetoothSocketWin is suitable. Separate out that common code into a new
BluetoothSocketNet class and have both implementations derive from that
class with their differing Connect implementations remaining separate.
BUG=362613
Review URL: https://codereview.chromium.org/267633003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267804 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This stops querying serial/product name information from HID
devices on enumeration. Apparently doing so can block the entire
system UI for long periods of time.
Terrible.
BUG=369200
R=rpaquay
Review URL: https://codereview.chromium.org/260863006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267772 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=368902
TEST=(see bug)
R=rpaquay@chromium.org
Review URL: https://codereview.chromium.org/266693002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267704 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL only implements the fetching of these values on Mac.
BUG=365966
TEST=browser_tests
R=kalman@chromium.org, keybuk@chromium.org
Review URL: https://codereview.chromium.org/246603008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267458 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
TEST=new api test case
BUG=364927
Review URL: https://codereview.chromium.org/250923010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267391 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=149314,363543
Review URL: https://codereview.chromium.org/258173003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267251 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
* Also add explicit destructors (to decrease code size due to inlining)
BUG=365101.
Review URL: https://codereview.chromium.org/255943003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267054 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=333979
Review URL: https://codereview.chromium.org/236203018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266831 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=364409
TEST=Able to receive incomming connections via the chrome.bluetooth API.
R=keybuk@chromium.org, rpaquay@chromium.org
Review URL: https://codereview.chromium.org/243963002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266698 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=127016
TEST=manual
R=rockot@chromium.org
Review URL: https://codereview.chromium.org/250803005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266546 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch implements the getService and getServices functions of the
bluetoothLowEnergy API. The key changes introduced are:
* BluetoothLowEnergyEventRouter, which tracks Observer events from the
device/bluetooth API, maintains a mapping from instance IDs to the necessary
metadata to look up a GATT object from the adapter, and handles basic logic
such as conversion between device::BluetoothGatt* and
extensions::api::bluetooth_low_energy::* objects and sending of API events.
* Implementation of getService and getServices functions.
* In browser unit tests for the above functions.
BUG=265663
TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.*, device_unittests
Review URL: https://codereview.chromium.org/256413003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266484 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This blacklists some specific types of HID devices from
being accessible to the chrome.hid API. Namely, any keyboard,
mice, other pointer devices, or system control inputs (such as
power and reset buttons) are blocked and cannot be enumerated
or opened by the consumers of the API.
BUG=355022
R=rpaquay
Review URL: https://codereview.chromium.org/258733002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266482 0039d316-1c4b-4281-b951-d872f2087c98
|