OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "chrome/browser/extensions/api/serial/serial_connection.h" | 5 #include "chrome/browser/extensions/api/serial/serial_connection.h" |
6 | 6 |
7 #include <sys/ioctl.h> | 7 #include <sys/ioctl.h> |
8 #include <termios.h> | 8 #include <termios.h> |
9 | 9 |
10 #if defined(OS_LINUX) | 10 #if defined(OS_LINUX) |
11 #include <linux/serial.h> | 11 #include <linux/serial.h> |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0)); | 274 info->cts_flow_control.reset(new bool((config.c_cflag & CRTSCTS) != 0)); |
275 return true; | 275 return true; |
276 } | 276 } |
277 | 277 |
278 std::string SerialConnection::MaybeFixUpPortName( | 278 std::string SerialConnection::MaybeFixUpPortName( |
279 const std::string &port_name) { | 279 const std::string &port_name) { |
280 return port_name; | 280 return port_name; |
281 } | 281 } |
282 | 282 |
283 } // namespace extensions | 283 } // namespace extensions |
OLD | NEW |