OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/keyboard/keyboard_util.h" | 5 #include "ui/keyboard/keyboard_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "ui/base/events/event.h" | 14 #include "ui/base/events/event.h" |
15 #include "ui/base/events/event_constants.h" | 15 #include "ui/base/events/event_constants.h" |
16 #include "ui/base/events/key_identifier_conversion.h" | 16 #include "ui/base/events/key_identifier_conversion.h" |
17 #include "ui/keyboard/keyboard_switches.h" | 17 #include "ui/keyboard/keyboard_switches.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // KeyEvent dictionary keys | 21 // KeyEvent dictionary keys |
22 const char kType[] = "type"; | 22 const char kType[] = "type"; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 type, prototype_event.key_code(), flags, prototype_event.is_char()); | 133 type, prototype_event.key_code(), flags, prototype_event.is_char()); |
134 if (character) { | 134 if (character) { |
135 event->set_character(character); | 135 event->set_character(character); |
136 event->set_unmodified_character(character); | 136 event->set_unmodified_character(character); |
137 } | 137 } |
138 | 138 |
139 return event; | 139 return event; |
140 } | 140 } |
141 | 141 |
142 } // namespace keyboard | 142 } // namespace keyboard |
OLD | NEW |