| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/ui/ash/event_rewriter.h" | 5 #include "chrome/browser/ui/ash/event_rewriter.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 const DeviceType type = EventRewriter::GetDeviceType(device_name); | 1055 const DeviceType type = EventRewriter::GetDeviceType(device_name); |
| 1056 if (type == kDeviceAppleKeyboard) { | 1056 if (type == kDeviceAppleKeyboard) { |
| 1057 VLOG(1) << "Apple keyboard '" << device_name << "' connected: " | 1057 VLOG(1) << "Apple keyboard '" << device_name << "' connected: " |
| 1058 << "id=" << device_id; | 1058 << "id=" << device_id; |
| 1059 } | 1059 } |
| 1060 // Always overwrite the existing device_id since the X server may reuse a | 1060 // Always overwrite the existing device_id since the X server may reuse a |
| 1061 // device id for an unattached device. | 1061 // device id for an unattached device. |
| 1062 device_id_to_type_[device_id] = type; | 1062 device_id_to_type_[device_id] = type; |
| 1063 return type; | 1063 return type; |
| 1064 } | 1064 } |
| OLD | NEW |