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 #include "chrome/browser/chromeos/events/event_rewriter.h" | 5 #include "chrome/browser/chromeos/events/event_rewriter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "ash/sticky_keys/sticky_keys_controller.h" | 11 #include "ash/sticky_keys/sticky_keys_controller.h" |
10 #include "ash/wm/window_state.h" | 12 #include "ash/wm/window_state.h" |
11 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
12 #include "base/command_line.h" | 14 #include "base/command_line.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "base/macros.h" | 16 #include "base/macros.h" |
15 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
16 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 for (const auto& keyboard : keyboards) { | 1144 for (const auto& keyboard : keyboards) { |
1143 if (keyboard.id == device_id) { | 1145 if (keyboard.id == device_id) { |
1144 return KeyboardDeviceAddedInternal( | 1146 return KeyboardDeviceAddedInternal( |
1145 keyboard.id, keyboard.name, keyboard.vendor_id, keyboard.product_id); | 1147 keyboard.id, keyboard.name, keyboard.vendor_id, keyboard.product_id); |
1146 } | 1148 } |
1147 } | 1149 } |
1148 return kDeviceUnknown; | 1150 return kDeviceUnknown; |
1149 } | 1151 } |
1150 | 1152 |
1151 } // namespace chromeos | 1153 } // namespace chromeos |
OLD | NEW |