OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/hid/hid_api.h" | 5 #include "extensions/browser/api/hid/hid_api.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "device/core/device_client.h" | 12 #include "device/core/device_client.h" |
11 #include "device/hid/hid_connection.h" | 13 #include "device/hid/hid_connection.h" |
12 #include "device/hid/hid_device_filter.h" | 14 #include "device/hid/hid_device_filter.h" |
13 #include "device/hid/hid_device_info.h" | 15 #include "device/hid/hid_device_info.h" |
14 #include "device/hid/hid_service.h" | 16 #include "device/hid/hid_service.h" |
15 #include "extensions/browser/api/api_resource_manager.h" | 17 #include "extensions/browser/api/api_resource_manager.h" |
16 #include "extensions/browser/api/device_permissions_prompt.h" | 18 #include "extensions/browser/api/device_permissions_prompt.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 356 |
355 void HidSendFeatureReportFunction::OnFinished(bool success) { | 357 void HidSendFeatureReportFunction::OnFinished(bool success) { |
356 if (success) { | 358 if (success) { |
357 Respond(NoArguments()); | 359 Respond(NoArguments()); |
358 } else { | 360 } else { |
359 Respond(Error(kErrorTransfer)); | 361 Respond(Error(kErrorTransfer)); |
360 } | 362 } |
361 } | 363 } |
362 | 364 |
363 } // namespace extensions | 365 } // namespace extensions |
OLD | NEW |