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 "chrome/test/chromedriver/keycode_text_conversion.h" | 5 #include "chrome/test/chromedriver/keycode_text_conversion.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <X11/keysym.h> | 8 #include <X11/keysym.h> |
9 #include <X11/XKBlib.h> | 9 #include <X11/XKBlib.h> |
10 #include <X11/Xlib.h> | 10 #include <X11/Xlib.h> |
11 #include <X11/Xutil.h> | 11 #include <X11/Xutil.h> |
12 | 12 |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/test/chromedriver/ui_events.h" | 14 #include "chrome/test/chromedriver/chrome/ui_events.h" |
15 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 15 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
16 #include "ui/base/x/x11_util.h" | 16 #include "ui/base/x/x11_util.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 struct KeyCodeAndXKeyCode { | 20 struct KeyCodeAndXKeyCode { |
21 ui::KeyboardCode key_code; | 21 ui::KeyboardCode key_code; |
22 int x_key_code; | 22 int x_key_code; |
23 }; | 23 }; |
24 | 24 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 found = true; | 238 found = true; |
239 break; | 239 break; |
240 } | 240 } |
241 } | 241 } |
242 if (found) { | 242 if (found) { |
243 *key_code = test_code; | 243 *key_code = test_code; |
244 *necessary_modifiers = test_modifiers; | 244 *necessary_modifiers = test_modifiers; |
245 } | 245 } |
246 return found; | 246 return found; |
247 } | 247 } |
OLD | NEW |