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

Side by Side Diff: chrome/browser/chromeos/events/event_rewriter.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 #include "chrome/browser/chromeos/events/event_rewriter.h" 5 #include "chrome/browser/chromeos/events/event_rewriter.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/sticky_keys/sticky_keys_controller.h" 11 #include "ash/sticky_keys/sticky_keys_controller.h"
12 #include "ash/wm/window_state.h" 12 #include "ash/wm/window_state.h"
13 #include "ash/wm/window_util.h" 13 #include "ash/wm/window_util.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/prefs/pref_service.h"
18 #include "base/strings/string_split.h" 17 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
20 #include "base/sys_info.h" 19 #include "base/sys_info.h"
21 #include "chrome/browser/chromeos/login/ui/login_display_host.h" 20 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
22 #include "chrome/browser/extensions/extension_commands_global_registry.h" 21 #include "chrome/browser/extensions/extension_commands_global_registry.h"
23 #include "chrome/browser/profiles/profile_manager.h" 22 #include "chrome/browser/profiles/profile_manager.h"
24 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
25 #include "chromeos/chromeos_switches.h" 24 #include "chromeos/chromeos_switches.h"
25 #include "components/prefs/pref_service.h"
26 #include "components/user_manager/user_manager.h" 26 #include "components/user_manager/user_manager.h"
27 #include "ui/base/ime/chromeos/ime_keyboard.h" 27 #include "ui/base/ime/chromeos/ime_keyboard.h"
28 #include "ui/base/ime/chromeos/input_method_manager.h" 28 #include "ui/base/ime/chromeos/input_method_manager.h"
29 #include "ui/events/devices/device_data_manager.h" 29 #include "ui/events/devices/device_data_manager.h"
30 #include "ui/events/event.h" 30 #include "ui/events/event.h"
31 #include "ui/events/event_utils.h" 31 #include "ui/events/event_utils.h"
32 #include "ui/events/keycodes/dom/dom_code.h" 32 #include "ui/events/keycodes/dom/dom_code.h"
33 #include "ui/events/keycodes/dom/dom_key.h" 33 #include "ui/events/keycodes/dom/dom_key.h"
34 #include "ui/events/keycodes/dom/keycode_converter.h" 34 #include "ui/events/keycodes/dom/keycode_converter.h"
35 #include "ui/events/keycodes/keyboard_code_conversion.h" 35 #include "ui/events/keycodes/keyboard_code_conversion.h"
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 for (const auto& keyboard : keyboards) { 1145 for (const auto& keyboard : keyboards) {
1146 if (keyboard.id == device_id) { 1146 if (keyboard.id == device_id) {
1147 return KeyboardDeviceAddedInternal( 1147 return KeyboardDeviceAddedInternal(
1148 keyboard.id, keyboard.name, keyboard.vendor_id, keyboard.product_id); 1148 keyboard.id, keyboard.name, keyboard.vendor_id, keyboard.product_id);
1149 } 1149 }
1150 } 1150 }
1151 return kDeviceUnknown; 1151 return kDeviceUnknown;
1152 } 1152 }
1153 1153
1154 } // namespace chromeos 1154 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.cc ('k') | chrome/browser/chromeos/events/event_rewriter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698