summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/usb/usb_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/usb/usb_api.h')
-rw-r--r--chrome/browser/extensions/api/usb/usb_api.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/extensions/api/usb/usb_api.h b/chrome/browser/extensions/api/usb/usb_api.h
index 59a2f61..1e560b4 100644
--- a/chrome/browser/extensions/api/usb/usb_api.h
+++ b/chrome/browser/extensions/api/usb/usb_api.h
@@ -57,7 +57,7 @@ class UsbAsyncApiTransferFunction : public UsbAsyncApiFunction {
class UsbFindDevicesFunction : public UsbAsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.findDevices");
+ DECLARE_EXTENSION_FUNCTION("usb.findDevices", USB_FINDDEVICES)
UsbFindDevicesFunction();
@@ -75,7 +75,7 @@ class UsbFindDevicesFunction : public UsbAsyncApiFunction {
class UsbCloseDeviceFunction : public UsbAsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.closeDevice");
+ DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE)
UsbCloseDeviceFunction();
@@ -93,7 +93,7 @@ class UsbCloseDeviceFunction : public UsbAsyncApiFunction {
class UsbClaimInterfaceFunction : public UsbAsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.claimInterface");
+ DECLARE_EXTENSION_FUNCTION("usb.claimInterface", USB_CLAIMINTERFACE)
UsbClaimInterfaceFunction();
@@ -111,7 +111,7 @@ class UsbClaimInterfaceFunction : public UsbAsyncApiFunction {
class UsbReleaseInterfaceFunction : public UsbAsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.releaseInterface");
+ DECLARE_EXTENSION_FUNCTION("usb.releaseInterface", USB_RELEASEINTERFACE)
UsbReleaseInterfaceFunction();
@@ -129,7 +129,8 @@ class UsbReleaseInterfaceFunction : public UsbAsyncApiFunction {
class UsbSetInterfaceAlternateSettingFunction : public UsbAsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.setInterfaceAlternateSetting");
+ DECLARE_EXTENSION_FUNCTION("usb.setInterfaceAlternateSetting",
+ USB_SETINTERFACEALTERNATESETTING)
UsbSetInterfaceAlternateSettingFunction();
@@ -147,7 +148,7 @@ class UsbSetInterfaceAlternateSettingFunction : public UsbAsyncApiFunction {
class UsbControlTransferFunction : public UsbAsyncApiTransferFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.controlTransfer");
+ DECLARE_EXTENSION_FUNCTION("usb.controlTransfer", USB_CONTROLTRANSFER)
UsbControlTransferFunction();
@@ -163,7 +164,7 @@ class UsbControlTransferFunction : public UsbAsyncApiTransferFunction {
class UsbBulkTransferFunction : public UsbAsyncApiTransferFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.bulkTransfer");
+ DECLARE_EXTENSION_FUNCTION("usb.bulkTransfer", USB_BULKTRANSFER)
UsbBulkTransferFunction();
@@ -180,7 +181,7 @@ class UsbBulkTransferFunction : public UsbAsyncApiTransferFunction {
class UsbInterruptTransferFunction : public UsbAsyncApiTransferFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.interruptTransfer");
+ DECLARE_EXTENSION_FUNCTION("usb.interruptTransfer", USB_INTERRUPTTRANSFER)
UsbInterruptTransferFunction();
@@ -196,7 +197,7 @@ class UsbInterruptTransferFunction : public UsbAsyncApiTransferFunction {
class UsbIsochronousTransferFunction : public UsbAsyncApiTransferFunction {
public:
- DECLARE_EXTENSION_FUNCTION_NAME("usb.isochronousTransfer");
+ DECLARE_EXTENSION_FUNCTION("usb.isochronousTransfer", USB_ISOCHRONOUSTRANSFER)
UsbIsochronousTransferFunction();