diff options
author | Ke He <ke.he@intel.com> | 2017-08-31 09:16:24 +0900 |
---|---|---|
committer | Qijiang Fan <fqj@google.com> | 2020-06-05 07:07:32 +0900 |
commit | 8daa4fbf053f91c76f3d2558a9d4fb25e84b4b0c (patch) | |
tree | caa33488a6d3a56acf24230452de93285aa7501d /mojo/public/tools/bindings/chromium_bindings_configuration.gni | |
parent | 6eae758c5bbb01b52bad72b7210b5ace8aea3397 (diff) | |
download | libchrome-8daa4fbf053f91c76f3d2558a9d4fb25e84b4b0c.tar.gz |
Add hid.mojom, re-define the device::HidDeviceInfo.
This is a prepare CL for the mojofication in next step.
In this CL we change:
1) Add hid.mojom in which we define the device::mojom::HidDeviceInfo.
2) Re-define the device::HidDeviceInfo which wraps the
device::mojom::HidDeviceInfo. The device::HidDeviceInfo will be
internal and won't exposed to client(after mojofication).
Remove the unnecessary HidDeviceInfoLinux.
3) Let all clients of HidService use device::mojom::HidDeviceInfo. Remove
the scoped_refptr<HidDeviceInfo> in client side, client should own
the device::mojom::HidDeviceInfo instead of sharing the same one.
4) Remove the HidService::GetDeviceInfo() which is only used by
HidDeviceManager. HidDeviceManager should keep the DeviceInfo in its map.
5) Change the tests accordingly, make sure all the tests pass.
TODO: 1) move client library files into device/hid/public/cpp
2) define mojo interfaces, then do mojofication.
3) host HidService by DeviceService instead of DeviceClient.
4) make sure all test cases pass after mojofication.
BUG=728223
Change-Id: I83a0d96ae4c1a8c3b4919c2b126399a10515601f
Reviewed-on: https://chromium-review.googlesource.com/627738
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Ke He <ke.he@intel.com>
Cr-Commit-Position: refs/heads/master@{#498688}
CrOS-Libchrome-Original-Commit: 8a11dd33ab40ce9dca23b38a7c9f7ca8011e8077
Diffstat (limited to 'mojo/public/tools/bindings/chromium_bindings_configuration.gni')
-rw-r--r-- | mojo/public/tools/bindings/chromium_bindings_configuration.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mojo/public/tools/bindings/chromium_bindings_configuration.gni b/mojo/public/tools/bindings/chromium_bindings_configuration.gni index 0632a62423..6fe236dcf4 100644 --- a/mojo/public/tools/bindings/chromium_bindings_configuration.gni +++ b/mojo/public/tools/bindings/chromium_bindings_configuration.gni @@ -19,6 +19,7 @@ _typemap_imports = [ "//content/public/common/typemaps.gni", "//device/bluetooth/public/interfaces/typemaps.gni", "//device/gamepad/public/interfaces/typemaps.gni", + "//device/hid/public/interfaces/typemaps.gni", "//extensions/common/typemaps.gni", "//gpu/ipc/common/typemaps.gni", "//media/capture/mojo/typemaps.gni", |