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 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ |
6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "device/serial/serial.mojom.h" | 10 #include "device/serial/serial.mojom.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 scoped_ptr<serial::SetControlSignals::Params> params_; | 239 scoped_ptr<serial::SetControlSignals::Params> params_; |
240 }; | 240 }; |
241 | 241 |
242 } // namespace core_api | 242 } // namespace core_api |
243 | 243 |
244 } // namespace extensions | 244 } // namespace extensions |
245 | 245 |
246 namespace mojo { | 246 namespace mojo { |
247 | 247 |
248 template <> | 248 template <> |
249 class TypeConverter<device::serial::DeviceInfoPtr, | 249 struct TypeConverter<linked_ptr<extensions::core_api::serial::DeviceInfo>, |
250 linked_ptr<extensions::core_api::serial::DeviceInfo> > { | 250 device::serial::DeviceInfoPtr> { |
251 public: | 251 static linked_ptr<extensions::core_api::serial::DeviceInfo> Convert( |
252 static linked_ptr<extensions::core_api::serial::DeviceInfo> ConvertTo( | |
253 const device::serial::DeviceInfoPtr& input); | 252 const device::serial::DeviceInfoPtr& input); |
254 }; | 253 }; |
255 | 254 |
256 } // namespace mojo | 255 } // namespace mojo |
257 | 256 |
258 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ | 257 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_API_H_ |
OLD | NEW |