Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: extensions/browser/api/usb/usb_api.h

Issue 562763002: Convert device::UsbConfigDescriptor and friends to structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add interface and endpoint descriptor iterator typedefs. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/usb/usb_interface_impl.cc ('k') | extensions/browser/api/usb/usb_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef EXTENSIONS_BROWSER_API_USB_USB_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_USB_USB_API_H_
6 #define EXTENSIONS_BROWSER_API_USB_USB_API_H_ 6 #define EXTENSIONS_BROWSER_API_USB_USB_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 extensions::core_api::usb::Direction* output); 161 extensions::core_api::usb::Direction* output);
162 bool ConvertSynchronizationTypeSafely( 162 bool ConvertSynchronizationTypeSafely(
163 const device::UsbSynchronizationType& input, 163 const device::UsbSynchronizationType& input,
164 extensions::core_api::usb::SynchronizationType* output); 164 extensions::core_api::usb::SynchronizationType* output);
165 bool ConvertTransferTypeSafely( 165 bool ConvertTransferTypeSafely(
166 const device::UsbTransferType& input, 166 const device::UsbTransferType& input,
167 extensions::core_api::usb::TransferType* output); 167 extensions::core_api::usb::TransferType* output);
168 bool ConvertUsageTypeSafely(const device::UsbUsageType& input, 168 bool ConvertUsageTypeSafely(const device::UsbUsageType& input,
169 extensions::core_api::usb::UsageType* output); 169 extensions::core_api::usb::UsageType* output);
170 170
171 scoped_ptr<base::ListValue> result_;
172 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_; 171 scoped_ptr<extensions::core_api::usb::ListInterfaces::Params> parameters_;
173 }; 172 };
174 173
175 class UsbCloseDeviceFunction : public UsbAsyncApiFunction { 174 class UsbCloseDeviceFunction : public UsbAsyncApiFunction {
176 public: 175 public:
177 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE) 176 DECLARE_EXTENSION_FUNCTION("usb.closeDevice", USB_CLOSEDEVICE)
178 177
179 UsbCloseDeviceFunction(); 178 UsbCloseDeviceFunction();
180 179
181 protected: 180 protected:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 312
314 virtual bool Prepare() OVERRIDE; 313 virtual bool Prepare() OVERRIDE;
315 virtual void AsyncWorkStart() OVERRIDE; 314 virtual void AsyncWorkStart() OVERRIDE;
316 315
317 private: 316 private:
318 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_; 317 scoped_ptr<extensions::core_api::usb::ResetDevice::Params> parameters_;
319 }; 318 };
320 } // namespace extensions 319 } // namespace extensions
321 320
322 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_ 321 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_
OLDNEW
« no previous file with comments | « device/usb/usb_interface_impl.cc ('k') | extensions/browser/api/usb/usb_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698